[dancer-users] Using Dancer::Plugin::Auth::Extensible with Dancer::Plugin::REST

Jacques Lareau jack.lareau at gmail.com
Wed Dec 11 04:12:28 GMT 2013


It's working great. Thanks!


On Tue, Dec 10, 2013 at 10:54 PM, Yanick Champoux
<yanick at babyl.dyndns.org>wrote:

> On 13-12-10 10:00 PM, Jacques Lareau wrote:
>
>> resource user =>
>>    get     => sub { },
>>    delete => require_role Admin => sub { },
>> ...
>>
>
> I'll go on a limb, but just for giggles, try:
>
>
>  resource user =>
>     get     => sub { },
>     delete => require_role( Admin => sub { } ),
>     ...
>
>
> What I suspect is happening is that 'require_role' slurps all the
> remaining arguments, which makes resource sad. But that's just a hunch, I
> could be wrong...
>
> Joy,
> `/anick
>
>
> _______________________________________________
> dancer-users mailing list
> dancer-users at dancer.pm
> http://lists.preshweb.co.uk/mailman/listinfo/dancer-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.preshweb.co.uk/pipermail/dancer-users/attachments/20131210/eebc3a66/attachment.html>


More information about the dancer-users mailing list