Update isAuthorized documentation
This commit is contained in:
parent
d54c336933
commit
2e1aa2d261
@ -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
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user