mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 18:28:37 +00:00
fix #650
This commit is contained in:
@@ -50,7 +50,7 @@ func MembersAction(ctx *middleware.Context) {
|
||||
}
|
||||
err = models.ChangeOrgUserStatus(org.Id, uid, false)
|
||||
case "public":
|
||||
if ctx.User.Id != uid {
|
||||
if ctx.User.Id != uid && !ctx.Org.IsOwner {
|
||||
ctx.Error(404)
|
||||
return
|
||||
}
|
||||
|
Reference in New Issue
Block a user