mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 21:28:11 +09:00 
			
		
		
		
	Fix creation of Organization repos by Users with max created personal repos (#11183)
* Fix creation of Org repos Fix go-gitea#9269 * Change variable name to appease linter * Update PR with suggestions Add a note for user.CanCreateRepo() about failure assumptions Change repo.create help message Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com>
This commit is contained in:
		| @@ -279,6 +279,7 @@ func (u *User) MaxCreationLimit() int { | ||||
| } | ||||
|  | ||||
| // CanCreateRepo returns if user login can create a repository | ||||
| // NOTE: functions calling this assume a failure due to repository count limit; if new checks are added, those functions should be revised | ||||
| func (u *User) CanCreateRepo() bool { | ||||
| 	if u.IsAdmin { | ||||
| 		return true | ||||
|   | ||||
		Reference in New Issue
	
	Block a user