This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
AI流水线
Repositories
Datasets
Forum
实训
竞赛
大数据
Register
Sign In
wangwei
/
aiforge
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
0
Code
Releases
128
Wiki
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
Browse Source
Admin should always be allowed to create repos even if hit limit (
#1765
)
tags/v1.21.12.1
Jonas Östanbäck
Lunny Xiao
8 years ago
parent
977dcf96e0
commit
80cea8747f
1 changed files
with
3 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+3
-0
models/user.go
+ 3
- 0
models/user.go
View File
@@ -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
Write
Preview
Loading…
Cancel
Save