Update isAuthorized documentation

This commit is contained in:
Arash Rouhani 2011-12-04 22:49:36 +01:00
parent d54c336933
commit 2e1aa2d261

View File

@ -170,9 +170,9 @@ class RenderRoute (Route a) => Yesod a where
-- | Determine if a request is authorized or not. -- | Determine if a request is authorized or not.
-- --
-- Return 'Nothing' is the request is authorized, 'Just' a message if -- Return 'Authorized' if the request is authorized,
-- unauthorized. If authentication is required, you should use a redirect; -- 'Unauthorized' a message if unauthorized.
-- the Auth helper provides this functionality automatically. -- If authentication is required, return 'AuthenticationRequired'.
isAuthorized :: Route a isAuthorized :: Route a
-> Bool -- ^ is this a write request? -> Bool -- ^ is this a write request?
-> GHandler s a AuthResult -> GHandler s a AuthResult