Skip to content

Commit d272256

Browse files
authored
Merge pull request #73 from Flexiana/auth_and_acl
add auth and acl back
2 parents fcc05f3 + ac31468 commit d272256

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

project.clj

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
(defproject com.flexiana/framework "0.1.9"
1+
(defproject com.flexiana/framework "0.2.0"
22
:description "Framework"
33
:url "https://github.com/Flexiana/framework"
44
:license {:name "FIXME" :url "FIXME"}

src/framework/components/app/core.clj

+6-6
Original file line numberDiff line numberDiff line change
@@ -120,20 +120,20 @@
120120
(defn mbuild-state
121121
[{:keys [deps
122122
http-request
123-
config]}]
123+
acl-cfg]}]
124124
(m/>>= (xiana/ok (create-empty-state))
125125
(comp xiana/ok
126126
#(assoc %
127127
:deps deps
128128
:request http-request))
129-
#(if config
130-
(acl-builder/init % config)
129+
#(if acl-cfg
130+
(acl-builder/init % acl-cfg)
131131
%)))
132132

133133
(defn ->app
134-
[{_acl-cfg :acl-cfg
134+
[{acl-cfg :acl-cfg
135135
session-backend :session-backend
136-
auth :auth
136+
auth :auth
137137
:as config}]
138138
(with-meta config
139139
`{component/start ~(fn [{:keys [router db
@@ -148,7 +148,7 @@
148148
:session-backend session-backend}
149149
state-built (mbuild-state {:deps deps
150150
:http-request http-request
151-
:config config
151+
:acl-cfg acl-cfg
152152
:auth auth})
153153
router-enter (select-interceptors router-interceptors :enter identity)
154154
router-leave (select-interceptors router-interceptors :leave reverse)

0 commit comments

Comments
 (0)