-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
Make restricted users can access public repositories #35693
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Blocking
Could you post the reason? It sounds reasonable for restricted users to visit public repositories. |
I know it is a designed behavior, but it is counterintuitive. If there is a strong reason, please help to add more comments and add some UI help messages. |
46cd47d
to
9b173c0
Compare
I thought the same about allowing Gitea Actions After I noticed this topic, I reverted public repo access for now and simply do refactoring + adding some tests. Maybe if the Gitea Actions User is a restricted user then a simple fallback to default user access validation instead of special handling can be used after this change is included in the branch. |
"require sign-in" is really an important feature but it is also really easy to forget .... |
ping @lafriks |
Thank you, added more tests in 5ae0753 , I think the "restricted user behavior" should be clearly covered now. |
Fix go-gitea#35690 Change the "restricted user" behavior introduced by go-gitea#6274. Now restricted user can also access public repositories when sign-in is not required. For required sign-in, the behavior isn't changed.
Backport #35693 by wxiaoguang Co-authored-by: wxiaoguang <[email protected]>
* giteaofficial/main: Fix external render (go-gitea#35727) Refactor Actions Token Access (go-gitea#35688) Honor delete branch on merge repo setting when using merge API (go-gitea#35488) Don't block site admin's operation if SECRET_KEY is lost (go-gitea#35721) [skip ci] Updated translations via Crowdin fix attachment file size limit in server backend (go-gitea#35519) Make restricted users can access public repositories (go-gitea#35693) Fix various trivial problems (go-gitea#35714) Refactor legacy code (go-gitea#35708) Add quick approve button on PR page (go-gitea#35678)
Fix #35690
Change the "restricted user" behavior introduced by #6274. Now restricted user can also access public repositories when sign-in is not required.
For required sign-in, the behavior isn't changed.