Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restrict creating organisations by user #193

Merged
merged 12 commits into from
Dec 31, 2016
Prev Previous commit
Next Next commit
fix comment
  • Loading branch information
Gogs committed Dec 30, 2016

Verified

This commit was signed with the committer’s verified signature.
jennydaman Jennings Zhang
commit a27d29d602c95a474663e6a65b53a713067116c7
2 changes: 1 addition & 1 deletion models/user.go
Original file line number Diff line number Diff line change
@@ -211,7 +211,7 @@ func (u *User) CanCreateRepo() bool {
return u.NumRepos < u.MaxRepoCreation
}

// CanCreateOrg returns true if user can create organisation.
// CanCreateOrganization returns true if user can create organisation.
func (u *User) CanCreateOrganization() bool {
return u.IsAdmin || u.AllowCreateOrganization
}