aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-12-10 12:48:45 -0500
committerUnknwon <u@gogs.io>2015-12-10 12:48:45 -0500
commit0e96a46020564af8a0061ccea09893422a48cc26 (patch)
tree8b7e9fd55a1960b3d3df24a0fadc8a9621e2d450
parentdf5ed64cca97919739ef20abf463fb3f211595fa (diff)
downloadgitea-0e96a46020564af8a0061ccea09893422a48cc26.tar.gz
gitea-0e96a46020564af8a0061ccea09893422a48cc26.zip
fix user repo limit default value
-rw-r--r--models/user.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/user.go b/models/user.go
index 6411bee6fd..2806ef64ed 100644
--- a/models/user.go
+++ b/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