diff options
Diffstat (limited to 'routers/api/v1/org/org.go')
-rw-r--r-- | routers/api/v1/org/org.go | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/routers/api/v1/org/org.go b/routers/api/v1/org/org.go index 328b97a223..e4a36b95c0 100644 --- a/routers/api/v1/org/org.go +++ b/routers/api/v1/org/org.go @@ -52,11 +52,6 @@ func Get(ctx *context.APIContext) { // see https://github.com/gogits/go-gogs-client/wiki/Organizations#edit-an-organization func Edit(ctx *context.APIContext, form api.EditOrgOption) { org := ctx.Org.Organization - if !org.IsOwnedBy(ctx.User.ID) { - ctx.Status(403) - return - } - org.FullName = form.FullName org.Description = form.Description org.Website = form.Website |