[Catalyst] ACLs

Jay Buffington jaybuffington at gmail.com
Thu May 24 21:12:13 GMT 2007


> On Thu, May 24, 2007 at 02:36:34PM +0800, 张淼 wrote:
> > __PACAKGE__->deny_access_unless( "/foo/bar", [qw/admin user/] );
> >
> > The "user" can't access /foo/bar.
> > What's the matter with it?
>
> That fragment of code isn't nearly enough for us to help, could you give
> us an idea of how your app's set up please?

Perhaps its the misspelling of __PACKAGE__

Be sure to always have these two lines near the top of your modules:
use strict;
use warnings;

Jay


More information about the Catalyst mailing list