diff options
author | Unknwon <u@gogs.io> | 2016-07-23 18:58:18 +0800 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2016-07-23 18:58:18 +0800 |
commit | 69f53087611b3b3fc558f6656bf68ad8603f9776 (patch) | |
tree | 0ea0648c073adaa0bd390a96b194ac90c95dc98d /models/org.go | |
parent | 4b5e09e4d6061e12a2a6728e5f7cfdf2f2550e58 (diff) | |
download | gitea-69f53087611b3b3fc558f6656bf68ad8603f9776.tar.gz gitea-69f53087611b3b3fc558f6656bf68ad8603f9776.zip |
#2903 use different reversed words and patterns for repository and user
Diffstat (limited to 'models/org.go')
-rw-r--r-- | models/org.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/org.go b/models/org.go index d2cb188935..9cb862dec9 100644 --- a/models/org.go +++ b/models/org.go @@ -94,7 +94,7 @@ func (org *User) RemoveOrgRepo(repoID int64) error { // CreateOrganization creates record of a new organization. func CreateOrganization(org, owner *User) (err error) { - if err = IsUsableName(org.Name); err != nil { + if err = IsUsableUsername(org.Name); err != nil { return err } |