We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7bc1faa commit c1275e2Copy full SHA for c1275e2
routers/api/v1/repo/repo.go
@@ -508,7 +508,7 @@ func Delete(ctx *context.APIContext) {
508
owner := ctx.Repo.Owner
509
repo := ctx.Repo.Repository
510
511
- if owner.IsOrganization() {
+ if owner.IsOrganization() && !ctx.User.IsAdmin {
512
isOwner, err := owner.IsOwnedBy(ctx.User.ID)
513
if err != nil {
514
ctx.Error(500, "IsOwnedBy", err)
0 commit comments