Setting ultimate dest with the isAuthorized function

This commit is contained in:
Michael Snoyman 2010-07-07 22:55:17 +03:00
parent d6509266f4
commit 43494c0557

View File

@ -264,7 +264,8 @@ toWaiApp' y segments env = do
case authRoute y of
Nothing ->
permissionDenied "Authentication required"
Just url ->
Just url -> do
setUltDest'
redirect RedirectTemporary url
Unauthorized s -> permissionDenied s
case handleSite site render url method of