mirror of
				https://github.com/go-gitea/gitea
				synced 2025-11-04 05:18:25 +00:00 
			
		
		
		
	Fixed unitTypeCode not being used (#6419)
This commit is contained in:
		@@ -238,7 +238,7 @@ func accessLevelUnit(e Engine, user *User, repo *Repository, unitType UnitType)
 | 
			
		||||
	if err != nil {
 | 
			
		||||
		return AccessModeNone, err
 | 
			
		||||
	}
 | 
			
		||||
	return perm.UnitAccessMode(UnitTypeCode), nil
 | 
			
		||||
	return perm.UnitAccessMode(unitType), nil
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func hasAccessUnit(e Engine, user *User, repo *Repository, unitType UnitType, testMode AccessMode) (bool, error) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user