Skip to content

Support org/user level projects #22235

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 28 commits into from
Jan 20, 2023
Merged
Changes from 1 commit
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
bb64be1
support org level projects
lunny Dec 24, 2022
c5266e3
Fix move
lunny Dec 24, 2022
420c5cd
Change the repo ref
lunny Dec 24, 2022
0436072
improve FindProjects
lunny Dec 24, 2022
4a5eb97
Fix lint
lunny Dec 27, 2022
24ce5fc
Merge branch 'main' into lunny/org_project
lunny Dec 27, 2022
8de5ae3
Merge branch 'main' into lunny/org_project
lunny Dec 27, 2022
68e6c14
Fix lint
lunny Dec 27, 2022
c39fca7
improve menus
lunny Dec 28, 2022
2c40716
Fix test
lunny Dec 28, 2022
44a56ed
Merge branch 'main' into lunny/org_project
lunny Dec 28, 2022
2c081a5
support user level projects
lunny Dec 28, 2022
b2c2deb
Fix test
lunny Dec 29, 2022
2a1365f
Merge branch 'main' into lunny/org_project
lunny Dec 29, 2022
547c309
improvement
lunny Dec 29, 2022
d0a3680
Fix test
lunny Dec 31, 2022
f94cb43
Merge branch 'main' into lunny/org_project
lunny Dec 31, 2022
ada5889
Use project-symblink icon for org level project
lunny Dec 31, 2022
a4ce734
Fix test
lunny Dec 31, 2022
afbd579
Merge branch 'main' into lunny/org_project
lunny Jan 1, 2023
ed07255
fix test
lunny Jan 1, 2023
959ba4b
Merge branch 'main' into lunny/org_project
lunny Jan 1, 2023
7a97a60
Merge branch 'main' into lunny/org_project
lunny Jan 2, 2023
a3322d2
Fix bug
lunny Jan 2, 2023
1889007
Merge branch 'main' into lunny/org_project
6543 Jan 2, 2023
cccf1e9
Merge branch 'main' into lunny/org_project
lunny Jan 16, 2023
a094dc8
Merge branch 'main' into lunny/org_project
lunny Jan 19, 2023
c4f1e41
Merge branch 'main' into lunny/org_project
lunny Jan 20, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix bug
  • Loading branch information
lunny committed Jan 2, 2023
commit a3322d2638f6099fe2c3f11c93cde48a70c6b380
6 changes: 5 additions & 1 deletion services/context/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,11 @@ func userAssignment(ctx *context.Context, errCb func(int, string, interface{}))
}
} else {
if ctx.ContextUser.IsOrganization() {
ctx.Data["Org"] = (*org_model.Organization)(ctx.ContextUser)
if ctx.Org == nil {
ctx.Org = &context.Organization{}
}
ctx.Org.Organization = (*org_model.Organization)(ctx.ContextUser)
ctx.Data["Org"] = ctx.Org.Organization
}
}
}
Expand Down