forgotten file

This commit is contained in:
Yann Esposito (Yogsototh) 2019-04-14 19:22:41 +02:00
parent 3f52d902c5
commit fc97114fc2
Signed by untrusted user who does not match committer: yogsototh
GPG key ID: 7B19A4C650D59646

View file

@ -0,0 +1,15 @@
module Aggreact.Authorization
( AuthorizationHandler (..)
)
where
import Protolude
import Aggreact.Scopes
data AuthorizationHandler =
AuthorizationHandler
{ filterAccess :: Scope -> Maybe User -> Handler ()
, hasScope :: Scope -> Maybe User -> Bool
, userScopes :: Maybe User -> Scopes
}