[web-devel] Fwd: Yesod. Routes. Resources. Authorization. ACL

Max Cantor mxcantor at gmail.com
Tue Jul 19 05:31:05 CEST 2011


forgot to reply to all

Begin forwarded message:

> From: Max Cantor <mxcantor at gmail.com>
> Date: July 19, 2011 10:45:54 AM GMT+08:00
> To: Anakreon Mentis <anakreonmejdi at gmail.com>
> Subject: Re: [web-devel] Yesod. Routes. Resources. Authorization. ACL
> 
> Since isAuthorized runs in the Handler monad you can pull out the request method from the request.  I think the second parameter is just intended as a bit of a timesaver.
> 
> max
> 
> On Jul 19, 2011, at 5:46 AM, Anakreon Mentis wrote:
> 
>> Regarding the isAuthorized function discussed at
>> http://www.haskell.org/pipermail/web-devel/2011/000855.html, I believe
>> it would be better if the second parameter was the method (GET, POST,
>> ..) instead of a boolean indicating if it is POST or DELETE.
>> 
>> _______________________________________________
>> web-devel mailing list
>> web-devel at haskell.org
>> http://www.haskell.org/mailman/listinfo/web-devel
> 




More information about the web-devel mailing list