-
-
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
Allow maximum permission granted to visitor/user #33456
Comments
Does it work for you? |
Sorry, I am running a production server, so I guess I'll wait for the 1.24 release to confirm. |
Without really deploying an instance, does the design look good to you?
|
Not quite. Suppose you have the following scenario:
Now, we have some repositories.
Now, focus on user Bob.
This means I give all signed-in users permission to use Issues/Wiki. Including Clara, who is not a member of any team with access to this private repository, neither a member of Testers group. In other words your proposal grants too much permission to private repositories. To make matters worse, I am using LDAP authentication and have quite a lot of users that can log in to Gitea. They are developers of some repos, but not others. Some users are testers only. So, I would not be comfortable to select Maybe the solution to my proposal could be simply implemented just by changing the ACL checks from if mayAccess(repo, user, unit, forReading) {
read_stuff();
} to if mayAccess(repo, user, unit, forReading) || (isPublic(repo) && mayAccessAnonymously(repo, unit, forReading)) {
read_stuff();
} The catch is the |
Feature Description
Hi!
I am running a Gitea server with hundreds of repositories. 99% are private.
I want to have a team (e.g. Testers) which has write access to Issues and Wiki for every repository on the server. But, I do not want to have members of this team access to the Code.
I have made a team called Testers, selected All repositories, and filled in the Allow Access to Repository Sections with appropriate level of permissions. Had to set Code unit to No Access.
This works fine for private repositories. Users, having code access via membership of other teams granted per-repository access, can access the code. Other users, members of Testers team, can only use issue tracker and Wiki.
The problem is Public repositories. Any anonymous visitor can read the code of a public repository. But the members of the Testers team cannot. They may Sign Out or use an In-private browser to access the code of a public repository. But not while being signed in.
Shouldn't Gitea use maximum granted permission when combining Public permissions with team permissions?
If some repo is public, it is annoying users need to sign out to get more access to this same repo.
Screenshots
No response
The text was updated successfully, but these errors were encountered: