fix(users): allow prefer postal setting for users with fraport department
This commit is contained in:
parent
cd9b542265
commit
a9d56c51dc
@ -370,7 +370,7 @@ validateSettings User{..} = do
|
||||
|
||||
userPrefersPostal' <- use _stgPrefersPostal
|
||||
guardValidation MsgUserPrefersPostalInvalid $
|
||||
not $ userPrefersPostal' && postalNotSet
|
||||
not $ userPrefersPostal' && (postalNotSet || isJust userCompanyDepartment)
|
||||
|
||||
userPinPassword' <- use _stgPinPassword
|
||||
let pinBad = validCmdArgument =<< userPinPassword'
|
||||
|
||||
Loading…
Reference in New Issue
Block a user