mirror of
https://github.com/go-gitea/gitea
synced 2025-07-15 15:07:20 +00:00
Add admin add user
This commit is contained in:
@ -107,7 +107,7 @@ func IsRepositoryExist(user *User, repoName string) (bool, error) {
|
||||
|
||||
var (
|
||||
// Define as all lower case!!
|
||||
illegalPatterns = []string{"[.][Gg][Ii][Tt]", "user", "help", "stars", "issues", "pulls", "commits", "admin", "repo", "template"}
|
||||
illegalPatterns = []string{"[.][Gg][Ii][Tt]", "user", "help", "stars", "issues", "pulls", "commits", "admin", "repo", "template", "admin"}
|
||||
)
|
||||
|
||||
// IsLegalName returns false if name contains illegal characters.
|
||||
|
Reference in New Issue
Block a user