From 2e1aa2d26151ed1217419b284c9691fa3d99b122 Mon Sep 17 00:00:00 2001 From: Arash Rouhani Date: Sun, 4 Dec 2011 22:49:36 +0100 Subject: [PATCH] Update `isAuthorized` documentation --- yesod-core/Yesod/Internal/Core.hs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/yesod-core/Yesod/Internal/Core.hs b/yesod-core/Yesod/Internal/Core.hs index 150cc46c..e21580d2 100644 --- a/yesod-core/Yesod/Internal/Core.hs +++ b/yesod-core/Yesod/Internal/Core.hs @@ -170,9 +170,9 @@ class RenderRoute (Route a) => Yesod a where -- | Determine if a request is authorized or not. -- - -- Return 'Nothing' is the request is authorized, 'Just' a message if - -- unauthorized. If authentication is required, you should use a redirect; - -- the Auth helper provides this functionality automatically. + -- Return 'Authorized' if the request is authorized, + -- 'Unauthorized' a message if unauthorized. + -- If authentication is required, return 'AuthenticationRequired'. isAuthorized :: Route a -> Bool -- ^ is this a write request? -> GHandler s a AuthResult