diff --git a/src/clj/yenu/middleware.clj b/src/clj/yenu/middleware.clj index 07f03a6..e997e96 100644 --- a/src/clj/yenu/middleware.clj +++ b/src/clj/yenu/middleware.clj @@ -93,8 +93,8 @@ (defn wrap-auth [handler] (-> handler (wrap-access-rules {:rules rules :on-error on-error}) - (wrap-authentication session-backend) - (wrap-authorization session-backend))) + (wrap-authentication (session-backend)) + (wrap-authorization (session-backend)))) (defn wrap-base [handler] (-> ((:middleware defaults) handler)