Description
- Gitea version (or commit ref): 339d7de
- Git version: 2.14.1 (Windows)
- Operating system: Linux Alpine (Gitea Docker)
- Database (use
[x]
):- PostgreSQL
- MySQL
- MSSQL
- SQLite
- Can you reproduce the bug at https://try.gitea.io:
- Yes (provide example URL): https://try.gitea.io/SuperOrganisation/PermissionsTest
- No
- Not relevant
- Log gist:
Description
When using organisations and teams there are permission settings for these teams. Available options are
- Read Permissions (with units that can be selected below)
- Write Permissions (with units that can be selected below)
- Admin Permissions
I created a team called WikiAuthors and only enabled them write access to the wiki. When testing the WikiAuthors could still change files in the code segment, accept pullrequest, etc (see try.gitea above).
When setting WikiAuthors to Read Permission and only for the unit Wiki, they could still see everything else but furtunetly not edit anything (except creating issues and pull requests) (see try.gitea above).
A simmilar problem arises when enableing branch protection. Users of a Team that is not whitelisted can still force push into a protected branch (this was not tested in the try.gitea version).
Am I using the permission system wrong or is it not fully implemented yet?
It seems that Gitea only cares about whether or not at least one write/read permission is set.
This Issue is somewhat related to #2684 as a broader issue concerning the permission system.