Skip to content
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

Using the API unable to delete a Repo within an Organisation where user is in the admin team but not the owner #23934

Closed
brianread108 opened this issue Apr 5, 2023 · 0 comments · Fixed by #23940
Labels

Comments

@brianread108
Copy link

Description

Using the API unable to delete a Repo within an Organisation where user is in the admin team but not the owner.
Return is:
{"message":"Given user is not owner of organization.","url":"https://***********/api/swagger"}
Can do it from web UI.

Gitea Version

1.19

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

Debian 11 in LXC under procmox

How are you running Gitea?

Used turnkey template.

Database

MySQL

jolheiser pushed a commit that referenced this issue Apr 7, 2023
Fixes #23934

We need to check `AccessModeAdmin` in `CanUserDelete` instead of
`AccessModeOwner`
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 23, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant