Fixed unitTypeCode not being used (#6423)
This commit is contained in:
parent
acb9ae4c4d
commit
84f41d9d92
1 changed files with 1 additions and 1 deletions
|
@ -238,7 +238,7 @@ func accessLevelUnit(e Engine, user *User, repo *Repository, unitType UnitType)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return AccessModeNone, err
|
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) {
|
func hasAccessUnit(e Engine, user *User, repo *Repository, unitType UnitType, testMode AccessMode) (bool, error) {
|
||||||
|
|
Reference in a new issue