index
:
gogs.git
Gogs is a painless self-hosted Git service
log msg
author
committer
range
buildscript
main
mygogs
about
summary
refs
log
tree
commit
diff
path:
root
/
routers
/
api
/
v1
/
org
/
org.go
diff options
context:
1
2
3
4
5
6
7
8
9
10
15
20
25
30
35
40
space:
include
ignore
mode:
unified
ssdiff
stat only
Diffstat
(limited to 'routers/api/v1/org/org.go')
-rw-r--r--
routers/api/v1/org/org.go
2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/api/v1/org/org.go b/routers/api/v1/org/org.go
index 5b1ea007..7b2cfcd1 100644
--- a/
routers/api/v1/org/org.go
+++ b/
routers/api/v1/org/org.go
@@ -48,7 +48,7 @@ func Get(ctx *context.APIContext) {
// 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) {
+ if !org.IsOwnedBy(ctx.User.ID) {
ctx.Status(403)
return
}