Subject: | wish: subroutine attributes to specify which ones need authorization |
Hello,
I'd like to be able to note which groups are allowed to access a run
mode with attributes, like this:
sub my_rm : authz('manager','admin') {
}
And have that trigger a prerun action that mean:
return $self->authz->forbidden unless
$self->authz->authorize('manager,'admin');