[Catalyst] Authorization::ACL - basic question

Sébastien Wagener sebastien.wagener at gmail.com
Fri Dec 15 11:12:22 GMT 2006


On Thu, 2006-12-07 at 09:09 -0800, Will Smith wrote:
> Hi, sorry if I ask a question that has been answered.
> How could I block out the whole set of actions instead of setting for
> each. For example:
> instead of doing authorization for each of action in books,pm
> controller such as:
> __PACKAGE__->deny_access_unless(
>             "/books/delete",
>             [qw/adminr/],
>         );
> __PACKAGE__->deny_access_unless(
>             "/books/edit",
>             [qw/admin/],
>         );
> 
> Is there a general way do block the whole "/books" ? I've tried that
> and it hung.
Strange. I am currently using 
__PACKAGE__->deny_access_unless(
  "/admin",
  [qw/admin/],
);
to block all my actions in the Admin controller.

Catalyst::Plugin::Authorization::ACL 0.08
Catalyst 5.008001
> 
> Thank you
> 
> 
> 
> ______________________________________________________________________
> Everyone is raving about the all-new Yahoo! Mail beta.
> _______________________________________________
> List: Catalyst at lists.rawmode.org
> Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
> Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
> Dev site: http://dev.catalyst.perl.org/




More information about the Catalyst mailing list