[dancer-users] Using Dancer::Plugin::Auth::Extensible with Dancer::Plugin::REST
Yanick Champoux
yanick at babyl.dyndns.org
Wed Dec 11 03:54:36 GMT 2013
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
More information about the dancer-users
mailing list