cleanup
This commit is contained in:
parent
fc97114fc2
commit
046d0f1fe5
2 changed files with 3 additions and 19 deletions
|
@ -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
|
||||||
|
|
|
@ -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
|
|
||||||
}
|
|
Loading…
Reference in a new issue