On Tue, Feb 10, 2015 at 9:26 AM, Dmitry L. dim0...@gmail.com wrote:
What do you get in debug console output?
By code (Catalyst::Plugin::Authorization::Roles) you have to see
something like this:
Role denied: @roles
This is what appears in the debug console:
[debug] Path is tickets/list
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
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
Luca,
Perhaps it's a stupid question, but have you checked that the user exists?
if ( $c-user_exists() ...
jb
On Monday, February 9, 2015 7:53 AM, Luca Ferrari fluca1...@infinito.it
wrote:
Hi all,
I'm trying to setup the authorization in an application, and therefore
in my
Ciao,
On Mon, Feb 9, 2015 at 6:12 PM, Jeff Black jeffrey.bl...@yahoo.com wrote:
Perhaps it's a stupid question, but have you checked that the user exists?
if ( $c-user_exists() ...
Apparently it exists because I print the username and its role list to
check...and of course the role is
Hi all,
I'm trying to setup the authorization in an application, and therefore
in my controller method I've something like the following:
if ( ! $c-check_any_user_role( qw/Admin Manutentore/ ) ){ }
and the above is always failing. At first I thought I was missing
something with the role