This commit is contained in:
Yann Esposito (Yogsototh) 2019-04-15 00:11:29 +02:00
parent fc97114fc2
commit 046d0f1fe5
Signed by untrusted user who does not match committer: yogsototh
GPG key ID: 7B19A4C650D59646
2 changed files with 3 additions and 19 deletions

View file

@ -1,10 +1,8 @@
cabal-version: 1.12 -- This file has been generated from package.yaml by hpack version 0.28.2.
-- This file has been generated from package.yaml by hpack version 0.31.2.
-- --
-- see: https://github.com/sol/hpack -- see: https://github.com/sol/hpack
-- --
-- hash: 5edc28ddb6ddbaae8fca1102380d6eca821d473ed494bca0e66de11e29600b9f -- hash: b4988a3c9435d94fc18d9e5063a020aa1bd3ef2b958b49a1fde23a8d052be970
name: aggreact name: aggreact
version: 0.1.0.0 version: 0.1.0.0
@ -18,6 +16,7 @@ copyright: © 2018 Yann Esposito
license: ISC license: ISC
license-file: LICENSE license-file: LICENSE
build-type: Simple build-type: Simple
cabal-version: >= 1.10
extra-source-files: extra-source-files:
README.md README.md
stack.yaml stack.yaml

View file

@ -1,15 +0,0 @@
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
}