소스 검색

fix user repo limit default value

Unknwon 9 년 전
부모
커밋
0e96a46020
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      models/user.go

+ 1 - 1
models/user.go

@@ -76,7 +76,7 @@ type User struct {
 	// Remember visibility choice for convenience, true for private
 	LastRepoVisibility bool
 	// Maximum repository creation limit, 0 means use gloabl default
-	MaxRepoCreation int `xorm:"NOT NULL"`
+	MaxRepoCreation int `xorm:"NOT NULL DEFAULT -1"`
 
 	// Permissions.
 	IsActive         bool