-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
Org admin users can not access org project #25670
Comments
I know what happened... There are two problems:
So we need a migration to add unit permission record in for admin teams in team_unit table. |
If team.IsAdminTeam() { |
|
Description
Thanks @kerwin612 for reporting this issue.
In some special cases, org admin users can not access
org level
project unit.I also noticed this issue several month ago, but I can't reproduce this issue again, so I didn't report this bug.
But @kerwin612 also reported this issue today, so it seems that this is a reproducible issue.
This issue can be fixed by some magic operations:
General Access
, you will see the permission of project unit isNo Access
.Write
, and save.Administrator Access
, and save.General Access
,Administrator Access
would work well.ps: I also can't reproduce this issue now in a new 1.19.3 Gitea instance or an old 1.18.5 instance update to 1.19.3Edit:
I misunderstand this issue, admin users can not access org level project unit, not repo level project unit.
I can reproduce this issue now, let's fix it. 😄
Gitea Version
1.19.3
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Screenshots
No response
Git Version
No response
Operating System
No response
How are you running Gitea?
self host
Database
None
The text was updated successfully, but these errors were encountered: