Authorize-Rule

 view release on metacpan or  search on metacpan

t/api/all-entities.t  view on Meta::CPAN

    $auth->is_allowed( 'Person', 'public' ),
    'Person is allowed in the public place'
);

ok(
    $auth->is_allowed( 'Foo', 'public' ),
    'Foo is allowed in the public place',
);

ok(
    ! $auth->is_allowed( 'Person', 'not_public'),
    'Person not allowed in the not_public place(default rule)',
);



( run in 1.467 second using v1.01-cache-2.11-cpan-0a987023a57 )