diff options
author | Unknwon <joe2010xtmf@163.com> | 2014-12-12 20:30:32 -0500 |
---|---|---|
committer | Unknwon <joe2010xtmf@163.com> | 2014-12-12 20:30:32 -0500 |
commit | ac4a10456ea4515091c3c90a83a82c1e59cdf428 (patch) | |
tree | db68f1f7a8f290322bd4da9892487cca5a1a5843 /modules/middleware/org.go | |
parent | 2f3a7e53cb58e922055baf3cf14138100a1f05ac (diff) | |
download | gitea-ac4a10456ea4515091c3c90a83a82c1e59cdf428.tar.gz gitea-ac4a10456ea4515091c3c90a83a82c1e59cdf428.zip |
api: able to create repo and fix #726
- POST /user/repos
- POST /org/:org/repos
Diffstat (limited to 'modules/middleware/org.go')
-rw-r--r-- | modules/middleware/org.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/middleware/org.go b/modules/middleware/org.go index be10298991..e687258617 100644 --- a/modules/middleware/org.go +++ b/modules/middleware/org.go @@ -48,7 +48,7 @@ func OrgAssignment(redirect bool, args ...bool) macaron.Handler { ctx.Data["Org"] = org if ctx.IsSigned { - ctx.Org.IsOwner = org.IsOrgOwner(ctx.User.Id) + ctx.Org.IsOwner = org.IsOwnedBy(ctx.User.Id) if ctx.Org.IsOwner { ctx.Org.IsMember = true ctx.Org.IsAdminTeam = true |