-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Fix owners cannot create organization repos bug #20841
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.
small nit otherwise L gtm
Co-authored-by: Gusted <[email protected]>
t.CanCreateOrgRepo = form.CanCreateOrgRepo | ||
} else { | ||
t.CanCreateOrgRepo = true |
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.
Alternatively, to save a line, you can do
t.CanCreateOrgRepo = t.IsOwnerTeam()
if !t.CanCreateOrgRepo {
...
t.CanCreateOrgRepo = form.CanCreateOrgRepo
above
Please send backport |
Backport go-gitea#20841 * Fix owners cannot create organization repos bug * Fix api * Update routers/api/v1/org/team.go Co-authored-by: Gusted <[email protected]>
Backport #20841 * Fix owners cannot create organization repos bug * Fix api * Update routers/api/v1/org/team.go Co-authored-by: Gusted <[email protected]> Co-authored-by: Lunny Xiao <[email protected]> Co-authored-by: Gusted <[email protected]> Co-authored-by: John Olheiser <[email protected]>
* giteaofficial/main: Fix create repository page's help text (go-gitea#20810) In PushMirrorsIterate and MirrorsIterate if limit is negative do not set it (go-gitea#20837) Disable doctor logging on panic (go-gitea#20847) Remove calls to load Mirrors in user.Dashboard (go-gitea#20855) switch to node18 for snapcraft Prevent 500 is head repo does not have PullRequest unit in IsUserAllowedToUpdate (go-gitea#20839) Fix owners cannot create organization repos bug (go-gitea#20841)
* Fix owners cannot create organization repos bug * Fix api * Update routers/api/v1/org/team.go Co-authored-by: Gusted <[email protected]> Co-authored-by: Gusted <[email protected]>
I would expect this is now fixed in the latest rootless Docker image of Gitea?
As org owner still get 403 Forbidden error when pressing the "New Repository" button on Org level. The request is a GET call on: |
|
Fix #20643, owners always can create repositories whatever given value.
If you encountered this problem, please upgrade Gitea and update the owner team and then owner team's permission will come back.