diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2017-05-19 08:59:26 +0800 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2017-05-19 08:59:26 +0800 |
commit | 6362462da8958980385aad7c8df503d90e13380d (patch) | |
tree | 04b10fe28c10b1de457677ae35555cb91050b235 /cmd/serv.go | |
parent | 25d6e2a6601f6a8ffd812db35da7692a82044a7f (diff) | |
download | gitea-6362462da8958980385aad7c8df503d90e13380d.tar.gz gitea-6362462da8958980385aad7c8df503d90e13380d.zip |
fix admin lost permission caused by #947
Diffstat (limited to 'cmd/serv.go')
-rw-r--r-- | cmd/serv.go | 2 |
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) |