On Sat, Dec 15, 2012 at 11:40 AM, David Precious <[email protected]> wrote:
> And to require specific roles:
>
>     get '/beer' => requires_role BeerDrinker => sub { ... };

As implemented, requires_role() only allows a single role.  I think
you should do something along the lines of:

    sub requires_role {
        my $coderef = pop;
        my @roles = @_;
        ...
    }

And then s/requires_role/requires_roles/ perhaps.

David

-- 
David Golden <[email protected]>
Take back your inbox! → http://www.bunchmail.com/
Twitter/IRC: @xdg
_______________________________________________
dancer-users mailing list
[email protected]
http://lists.preshweb.co.uk/mailman/listinfo/dancer-users

Reply via email to