Risk-Aware Code Review: Auto Approve Low-Risk Changes
LiveReview LiveReview LiveReview - Free, Risk-Aware Code Review: Auto Approve Low-Risk Changes | Product Hunt LiveReview - Free, Risk-Aware Code Review: Auto Approve Low-Risk Changes | Product Hunt GitHub Install Now

We'd appreciate a star

Catalyst::Action::Role::ACL - Deprecated user role-based authorization action class

Author

       David P.C. Wollmann <converter42@gmail.com>

Bugs

       This is new code. Find the bugs and report them, please.

Description

       Provides a Catalyst reusable action for user role-based authorization. ACLs are applied via the
       assignment of attributes to application action subroutines.

       You are better using Catalyst::ActionRole::ACL to do this, as it plays nicely with other extensions. This
       package is maintained to allow compatibility with people using this in existing code, but will warn once
       when used.

Name

       Catalyst::Action::Role::ACL - Deprecated user role-based authorization action class

Synopsis

        sub foo
        :Local
        :ActionClass(Role::ACL)
        :RequiresRole(admin)
        :ACLDetachTo(denied)
        {
            my ($self, $c) = @_;
            ...
        }

        sub denied :Private {
            my ($self, $c) = @_;

            $c->res->status('403');
            $c->res->body('Denied!');
        }

See Also