Browse Source

Change reserved avatar name to correct - avatars (#3375)

tags/v1.4.0-rc1
Lauris BH 6 years ago
parent
commit
a68bf746a4
No account linked to committer's email address
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      models/user.go

+ 1
- 1
models/user.go View File

@@ -649,7 +649,7 @@ func NewGhostUser() *User {
}

var (
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", ".", ".."}
reservedUsernames = []string{"assets", "css", "explore", "img", "js", "less", "plugins", "debug", "raw", "install", "api", "avatars", "user", "org", "help", "stars", "issues", "pulls", "commits", "repo", "template", "admin", "new", ".", ".."}
reservedUserPatterns = []string{"*.keys"}
)


Loading…
Cancel
Save