Re: [Catalyst] question about authorization and roles

2015-02-10 Thread Dmitry L.
What do you get in debug console output? By code (Catalyst::Plugin::Authorization::Roles) you have to see something like this: Role denied: @roles Anyway, you should look into Catalyst::Plugin::Authorization::Roles and try debug it, code is simple. On 10 February 2015 at 11:01, Luca Ferrari

Re: [Catalyst] question about authorization and roles

2015-02-10 Thread Luca Ferrari
Ciao, this is what I did in order to get more info: # in the controller if ( ! $c-check_any_user_role( qw/Admin Manutentore/ ) ) { $c-stash-{ message } = User exists . $c-user_exists() . - with username . $c-user-username . and roles \ . $c-user-roles_to_string . and the check is

Re: [Catalyst] How to get default()-like behavior outside of the Root controller

2015-02-10 Thread Aristotle Pagaltzis
Hi Trevor, * Trevor Leffler tleff...@uw.edu [2015-02-07 00:00]: Requests for non-extant paths fall through to Root-default(), which gives the (undesired) default root view. I tried giving my top-level controllers their own default() methods, but as others have found [1], 'default() : Path'

Re: [Catalyst] How to get default()-like behavior outside of the Root controller

2015-02-10 Thread Trevor Leffler
Hi Aristotle, On 02/10/2015 02:39 AM, Aristotle Pagaltzis wrote: Hi Trevor, * Trevor Leffler tleff...@uw.edu [2015-02-07 00:00]: Requests for non-extant paths fall through to Root-default(), which gives the (undesired) default root view. I tried giving my top-level controllers their own

Re: [Catalyst] How to get default()-like behavior outside of the Root controller

2015-02-10 Thread Trevor Leffler
It turns out the length of the chaining is a variable in this equation. In my Test Controller... This gives good behavior: sub base : Chained('/') PathPart('test') CaptureArgs(0) {} sub another : Chained('base') PathPart('') CaptureArgs(0) {} sub index : Chained('another') PathPart('') Args(0)