1
0
Fork 0
forked from forgejo/forgejo
This commit is contained in:
Unknwon 2015-11-19 11:40:00 -05:00
parent ee686f6231
commit 2158e6fc43
4 changed files with 14 additions and 14 deletions

View file

@ -275,7 +275,7 @@ func RepoAssignment(redirect bool, args ...bool) macaron.Handler {
}
// Admin has super access.
if ctx.User.IsAdmin {
if ctx.IsSigned && ctx.User.IsAdmin {
ctx.Repo.AccessMode = models.ACCESS_MODE_OWNER
} else {
mode, err := models.AccessLevel(ctx.User, repo)