forked from forgejo/forgejo
fix #1997
This commit is contained in:
parent
ee686f6231
commit
2158e6fc43
4 changed files with 14 additions and 14 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue