diff --git a/models/user.go b/models/user.go index 7e6bbd5dc30..75329d8ff0f 100644 --- a/models/user.go +++ b/models/user.go @@ -221,6 +221,9 @@ func (u *User) RepoCreationNum() int { // CanCreateRepo returns if user login can create a repository func (u *User) CanCreateRepo() bool { + if u.IsAdmin { + return true + } if u.MaxRepoCreation <= -1 { if setting.Repository.MaxCreationLimit <= -1 { return true