Permalink
Browse files

Fix for cemerick/friend #32

  • Loading branch information...
PetrGlad committed Nov 10, 2012
1 parent 71ab55f commit f2ccfa116950081c399419798f1853780573fc18
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/cemerick/friend.clj
View
@@ -227,7 +227,7 @@ Equivalent to (complement current-authentication)."}
[& body]
(let [[unauthorized-info body] (if (map? (first body)) body [nil body])]
`(if (current-authentication *identity*)
- ~@body
+ (do ~@body)
(#'throw-unauthorized *identity* (merge ~unauthorized-info
{::exprs (quote [~@body])
::type :unauthenticated})))))

0 comments on commit f2ccfa1

Please sign in to comment.