polysemy-account-api-0.2.0.0: Account management with Servant and Polysemy
Safe HaskellSafe-Inferred
LanguageHaskell2010

Polysemy.Account.Api.Interpreter.Authorize

Description

 
Synopsis

Documentation

interpretAuthorizeWith :: (param -> AuthedAccount i priv -> Sem r (Maybe Text)) -> InterpreterFor (Authorize i param priv) r Source #

Interpret Authorize using a monadic predicate.

interpretAuthorizeP :: InterpreterFor (Authorize i [Privilege] [Privilege]) r Source #

Interpret Authorize using Privilege for both parameter and privilege types.

Simply verify that all parameter privileges are present in the account.