Skip to content

Commit

Permalink
Fix for cemerick/friend cemerick#32
Browse files Browse the repository at this point in the history
  • Loading branch information
PetrGlad committed Nov 10, 2012
1 parent 71ab55f commit f2ccfa1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cemerick/friend.clj
Expand Up @@ -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})))))
Expand Down

0 comments on commit f2ccfa1

Please sign in to comment.