]> source.dussan.org Git - gitea.git/commitdiff
Reserve the "explore" user/org name (#1222)
authorSandro Santilli <strk@kbt.io>
Sun, 12 Mar 2017 01:39:38 +0000 (02:39 +0100)
committerLunny Xiao <xiaolunwen@gmail.com>
Sun, 12 Mar 2017 01:39:38 +0000 (09:39 +0800)
models/user.go

index a7e22659ec71660fb9644233b4811684d44b25a5..7cdff1a46fda3c004e75336b97c48f2e1e40d97e 100644 (file)
@@ -630,7 +630,7 @@ func NewGhostUser() *User {
 }
 
 var (
-       reservedUsernames    = []string{"assets", "css", "img", "js", "less", "plugins", "debug", "raw", "install", "api", "avatar", "user", "org", "help", "stars", "issues", "pulls", "commits", "repo", "template", "admin", "new", ".", ".."}
+       reservedUsernames    = []string{"assets", "css", "explore", "img", "js", "less", "plugins", "debug", "raw", "install", "api", "avatar", "user", "org", "help", "stars", "issues", "pulls", "commits", "repo", "template", "admin", "new", ".", ".."}
        reservedUserPatterns = []string{"*.keys"}
 )