summaryrefslogtreecommitdiffstats
path: root/cmd/serv.go
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2017-05-19 08:59:26 +0800
committerLunny Xiao <xiaolunwen@gmail.com>2017-05-19 08:59:26 +0800
commit6362462da8958980385aad7c8df503d90e13380d (patch)
tree04b10fe28c10b1de457677ae35555cb91050b235 /cmd/serv.go
parent25d6e2a6601f6a8ffd812db35da7692a82044a7f (diff)
downloadgitea-6362462da8958980385aad7c8df503d90e13380d.tar.gz
gitea-6362462da8958980385aad7c8df503d90e13380d.zip
fix admin lost permission caused by #947
Diffstat (limited to 'cmd/serv.go')
-rw-r--r--cmd/serv.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/serv.go b/cmd/serv.go
index 0b1ddc3277..277790d4ca 100644
--- a/cmd/serv.go
+++ b/cmd/serv.go
@@ -250,7 +250,7 @@ func runServ(c *cli.Context) error {
user.Name, requestedMode, repoPath)
}
- if !repo.CheckUnitUser(user.ID, unitType) {
+ if !repo.CheckUnitUser(user.ID, user.IsAdmin, unitType) {
fail("You do not have allowed for this action",
"User %s does not have allowed access to repository %s 's code",
user.Name, repoPath)