aboutsummaryrefslogtreecommitdiff
path: root/routers/repo/repo.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/repo/repo.go')
-rw-r--r--routers/repo/repo.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/repo/repo.go b/routers/repo/repo.go
index 54e5fcfb..44a2b84f 100644
--- a/routers/repo/repo.go
+++ b/routers/repo/repo.go
@@ -90,7 +90,7 @@ func CreatePost(ctx *middleware.Context, form auth.CreateRepoForm) {
}
// Check ownership of organization.
- if !models.IsOrganizationOwner(u.Id, ctx.User.Id) {
+ if !u.IsOrgOwner(ctx.User.Id) {
ctx.Error(403)
return
}