aboutsummaryrefslogtreecommitdiffstats
path: root/models/user.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/user.go')
-rw-r--r--models/user.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/models/user.go b/models/user.go
index 50635273bd..a89eb144ce 100644
--- a/models/user.go
+++ b/models/user.go
@@ -279,6 +279,7 @@ func (u *User) MaxCreationLimit() int {
}
// CanCreateRepo returns if user login can create a repository
+// NOTE: functions calling this assume a failure due to repository count limit; if new checks are added, those functions should be revised
func (u *User) CanCreateRepo() bool {
if u.IsAdmin {
return true