On 13-12-10 10:00 PM, Jacques Lareau wrote:I'll go on a limb, but just for giggles, try:
resource user =>
get => sub { },
delete => require_role Admin => sub { },
...
delete => require_role( Admin => sub { } ),
resource user =>
get => 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@dancer.pm
http://lists.preshweb.co.uk/mailman/listinfo/dancer-users