mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 11:35:03 +01:00 
			
		
		
		
	Admins are allowed to create repos for arbitrary Orgs
This commit is contained in:
		
							parent
							
								
									7ef9a05588
								
							
						
					
					
						commit
						a3eab8185d
					
				| @ -57,7 +57,7 @@ func checkContextUser(ctx *middleware.Context, uid int64) *models.User { | ||||
| 	} | ||||
| 
 | ||||
| 	// Check ownership of organization. | ||||
| 	if !org.IsOrganization() || !org.IsOwnedBy(ctx.User.Id) { | ||||
| 	if !org.IsOrganization() || !(ctx.User.IsAdmin || org.IsOwnedBy(ctx.User.Id)) { | ||||
| 		ctx.Error(403) | ||||
| 		return nil | ||||
| 	} | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user