mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-06-02 16:35:26 -04:00
#2903 use different reversed words and patterns for repository and user
This commit is contained in:
parent
4b5e09e4d6
commit
69f5308761
6 changed files with 52 additions and 37 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue