summaryrefslogtreecommitdiffstats
path: root/routers/repo/repo.go
diff options
context:
space:
mode:
authorPeter Smit <peter@smitmail.eu>2015-02-16 12:51:56 +0200
committerPeter Smit <peter@smitmail.eu>2015-02-16 12:51:56 +0200
commited89b39984a9191380263eaf357c3a9c71770674 (patch)
tree8fd13622efaef4ae4766634b1c210fbf20727e5d /routers/repo/repo.go
parentcd6a2b78a752605d808c6392ce78b92d4759fede (diff)
downloadgitea-ed89b39984a9191380263eaf357c3a9c71770674.tar.gz
gitea-ed89b39984a9191380263eaf357c3a9c71770674.zip
Updating context and fixing permission issues
The boolean flags in the repo context have been replaced with mode and two methods Also, the permissions have been brought more in line with https://help.github.com/articles/permission-levels-for-an-organization-repository/ , Admin Team members are able to change settings of their repositories.
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 48f7b09bc0..0053720030 100644
--- a/routers/repo/repo.go
+++ b/routers/repo/repo.go
@@ -343,7 +343,7 @@ func Action(ctx *middleware.Context) {
case "unstar":
err = models.StarRepo(ctx.User.Id, ctx.Repo.Repository.Id, false)
case "desc":
- if !ctx.Repo.IsOwner {
+ if !ctx.Repo.IsOwner() {
ctx.Error(404)
return
}