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)
Hi Aristotle,
On 02/10/2015 02:39 AM, Aristotle Pagaltzis wrote:
Hi Trevor,
* Trevor Leffler [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, b
Hi Trevor,
* Trevor Leffler [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' has precedenc
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 wrot
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