0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-12-25 21:34:49 +01:00

Fixed unitTypeCode not being used (#6419)

This commit is contained in:
kolaente 2019-03-24 10:08:45 +01:00 committed by Lauris BH
parent b48be1958c
commit fb2ea06bb1

View file

@ -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) {