-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Calculate PublicOnly
for org membership only once
#32234
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 8000 of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
PublicOnly
for org membership only once
As a habit, we almost check permission in service layer but not in models layer. What's the problem with the previous code? |
I can create a new func in the service witch checks permissions ... but we would have to alter the existing code a lot and i want to only touch it here for a explizite context ... : the refactoring that makes the #32211 diff smal |
the determination if a user can see public or private org membership is determined in different places ... I want to have that check in a single place ... |
this needs an answer to move forward from @lunny ... |
@lunny anything else? |
thanks ❤️ ! |
* giteaofficial/main: Calculate `PublicOnly` for org membership only once (go-gitea#32234) Add `DEFAULT_MIRROR_REPO_UNITS` and `DEFAULT_TEMPLATE_REPO_UNITS` options (go-gitea#32416) Add a doctor check to disable the "Actions" unit for mirrors (go-gitea#32424) Refactor sidebar assignee&milestone&project selectors (go-gitea#32465)
Refactoring of #32211
this move the PublicOnly() filter calcuation next to the DB querys and let it be decided by the Doer
Sponsored by Kithara Software GmbH