Gentoo Archives: gentoo-perl

From: Michele Beltrame <admin@×××××××××.info>
To: gentoo-perl@l.g.o
Subject: Re: [gentoo-perl] Can't locate Catalyst/Plugin/Authentication/Store/DBIC.pm
Date: Tue, 18 Dec 2007 12:22:39
Message-Id: 4767BB63.1040206@talkblade.info
In Reply to: [gentoo-perl] Can't locate Catalyst/Plugin/Authentication/Store/DBIC.pm by perl
Hi!

The Catalyst authentication framework changed a bit lately. ;-)

> if ($c->check_user_roles('admin')) { > > ... didn't seem to fly. > > Now, I'm stuck. That method comes from, I think, ::DBIC ... what's the > new way? Fortunately, in this app, if you are not 'admin' you must be a > user... but I'd like to have my ROLE back!!!
That method come from Catalyst::Plugin::Authorization::Roles - but there's no "new way" for it, it should just work. Make sure the fields role_relation and role_filed in the config are accurate. Hope this helps. Michele. -- Michele Beltrame http://www.cattlegrid.info/ ICQ 76660101 - MSN mb@×××××××.net Privacy: http://www.italpro.net/em.html -- gentoo-perl@g.o mailing list