-
-
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
[Bug Report] Team Permission Status #18572
Comments
problem doesn't appear on team created on gitea version 1.15, then upgraded to v1.17 it works fine, but if the team is created on v.1.17 it seems the team will either readonly or administrator permission |
@zeripath could you check this out, I think this major problem on the team permmission assignment. |
@AaronS8 please don't share credentials for gitea.com, if you'd like to share a replication please use try.Gitea.io. I've deleted your comment, but please change the credentials too |
Okay @techknowlogick I couldn't creat an organization or teams on try.Gitea.io, the only way was by using the officail gitea website. |
Ugh. There is a real and serious issue here. The UI on the sidebar would not be difficult to update - (translations mean that we would need to be cautious in the way we fix this to ensure that backports work.) The real problem is the access checking underneath for assignees (and likely elsewhere too). This relies on checking the access table which has a coarse permission check only. I suspect this wasn't considered when the fine grained team permissions pr was added. Ideally the access table would have been changed to include units in some way - which we can't do now on 1.16. This means that access checking code will need to be significantly refactored to do the correct tests in order to generate the correct assignees list. But everything that relies on the access table is suspect for not doing the right test now. |
I wonder if @zeripath has notifications setup for when i'm mentioned 🤣 |
Could it be a simpler problem, I think units assignment works for teams made in pervious version 1.15, could it be just coding problem? |
It is not simple. The following are now wrong: Lines 134 to 179 in df44017
Lines 147 to 178 in df44017
Anything that uses the access table as a proxy for write permissions is incorrect - we need to search the entire codebase for other examples. The correct solution is add finergrained permissions checking in to the access table - the access table should have always been a quadruplet:
Whether that is in Codd normal form as in a row per repo, user, unit, mode or it is in some more compressed form:
or even:
The problem is that we cannot backport such a change to 1.16. So fixing this is going to be complex. |
- Don't let `TypeExternalTracker` or `TypeExternalWiki` influence the minimal permission, as they won't be higher than read. So even if all the other ones are write, these 2 will ensure that's not higher than read. - Partially resolves go-gitea#18572 (Point 1,2,5?)
- Don't let `TypeExternalTracker` or `TypeExternalWiki` influence the minimal permission, as they won't be higher than read. So even if all the other ones are write, these 2 will ensure that's not higher than read. - Partially resolves #18572 (Point 1,2,5?) Co-authored-by: zeripath <[email protected]>
Fix go-gitea#18572 Signed-off-by: Andrew Thornton <[email protected]>
Fix go-gitea#18572 Signed-off-by: Andrew Thornton <[email protected]>
…ebar (#18680) Following the merging of #17811 teams can now have differing write and readonly permissions, however the assignee list will not include teams which have mixed perms. Further the org sidebar is no longer helpful as it can't describe these mixed permissions situations. Fix #18572 Signed-off-by: Andrew Thornton <[email protected]>
…ebar (go-gitea#18680) Backport go-gitea#18680 Following the merging of go-gitea#17811 teams can now have differing write and readonly permissions, however the assignee list will not include teams which have mixed perms. Further the org sidebar is no longer helpful as it can't describe these mixed permissions situations. Fix go-gitea#18572 Signed-off-by: Andrew Thornton <[email protected]>
…ebar (#18680) (#18873) Backport #18680 Following the merging of #17811 teams can now have differing write and readonly permissions, however the assignee list will not include teams which have mixed perms. Further the org sidebar is no longer helpful as it can't describe these mixed permissions situations. Fix #18572 Signed-off-by: Andrew Thornton <[email protected]>
- Don't let `TypeExternalTracker` or `TypeExternalWiki` influence the minimal permission, as they won't be higher than read. So even if all the other ones are write, these 2 will ensure that's not higher than read. - Partially resolves go-gitea#18572 (Point 1,2,5?) Co-authored-by: zeripath <[email protected]>
…ebar (go-gitea#18680) Following the merging of go-gitea#17811 teams can now have differing write and readonly permissions, however the assignee list will not include teams which have mixed perms. Further the org sidebar is no longer helpful as it can't describe these mixed permissions situations. Fix go-gitea#18572 Signed-off-by: Andrew Thornton <[email protected]>
Gitea Version
1.16 && 1.17.0+dev-75-g7f2530e00
Git Version
2.33
Operating System
Windows 10
How are you running Gitea?
Downloaded from Gitea
Runining as service
Database
PostgreSQL
MSSQL
Can you reproduce the bug on the Gitea demo site?
Yes, SeeOn
Log Gist
No response
Description
Bug
Additional Infromation
Test Information
Screenshots
Even when all units are on given on write Permmssion, the Team has Readonly access See Below Screen shoot.
The text was updated successfully, but these errors were encountered: