Browse Source

fix user repo limit default value

Unknwon 9 years ago
parent
commit
0e96a46020
1 changed files with 1 additions and 1 deletions
  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
 	// Remember visibility choice for convenience, true for private
 	LastRepoVisibility bool
 	LastRepoVisibility bool
 	// Maximum repository creation limit, 0 means use gloabl default
 	// Maximum repository creation limit, 0 means use gloabl default
-	MaxRepoCreation int `xorm:"NOT NULL"`
+	MaxRepoCreation int `xorm:"NOT NULL DEFAULT -1"`
 
 
 	// Permissions.
 	// Permissions.
 	IsActive         bool
 	IsActive         bool