]> source.dussan.org Git - gitea.git/commitdiff
fix user repo limit default value
authorUnknwon <u@gogs.io>
Thu, 10 Dec 2015 17:48:45 +0000 (12:48 -0500)
committerUnknwon <u@gogs.io>
Thu, 10 Dec 2015 17:48:45 +0000 (12:48 -0500)
models/user.go

index 6411bee6fd38369fce1e5e94155add2f8428948c..2806ef64ed4f18269042755fa889b26e73ff187a 100644 (file)
@@ -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