Skip to content

Commit 5242015

Browse files
authored
Update models/user/user.go
1 parent cc9feed commit 5242015

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

models/user/user.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,7 @@ func (u *User) MaxCreationLimit() int {
248248
}
249249

250250
// CanCreateRepoIn checks whether the doer(u) can create a repository in the owner
251+
// NOTE: functions calling this assume a failure due to repository count limit; it ONLY checks the repo number LIMIT, if new checks are added, those functions should be revised
251252
func (u *User) CanCreateRepoIn(owner *User) bool {
252253
if u.IsAdmin {
253254
return true

0 commit comments

Comments
 (0)