aboutsummaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorUnknwon <joe2010xtmf@163.com>2014-09-12 21:36:26 -0400
committerUnknwon <joe2010xtmf@163.com>2014-09-12 21:36:26 -0400
commita2cac952a411ab1d1159bdaaf144fbb39a355010 (patch)
treeaa9b8f32d80b1f5df1744865b61c87b8e0bebfe9 /modules
parentbba401a5dcf8af2fdc4c7c05b11db100019ee4fa (diff)
downloadgitea-a2cac952a411ab1d1159bdaaf144fbb39a355010.tar.gz
gitea-a2cac952a411ab1d1159bdaaf144fbb39a355010.zip
Prepare 0.5 release
Diffstat (limited to 'modules')
-rw-r--r--modules/middleware/repo.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/middleware/repo.go b/modules/middleware/repo.go
index 68a9a2d7fb..82ef3c799e 100644
--- a/modules/middleware/repo.go
+++ b/modules/middleware/repo.go
@@ -109,7 +109,7 @@ func RepoAssignment(redirect bool, args ...bool) macaron.Handler {
}
// Check if current user has admin permission to repository.
if u.IsOrganization() {
- auth, err := models.GetHighestAuthorize(u.Id, ctx.User.Id, 0, repo.Id)
+ auth, err := models.GetHighestAuthorize(u.Id, ctx.User.Id, repo.Id, 0)
if err != nil {
ctx.Handle(500, "GetHighestAuthorize", err)
return