Hi,
I have read in the POD documentation of
CGI::Application::Plugin::Authorization about a way of specifying the
runmodes and their access levels, using:
MyCGIApp->authz->runmode_authz(
qr/^admin_/ => 'admin',
);
But it doesn't work. It appears an error telling that there is no method
with this name in the module.
Was it removed?
Is there another way of specifying in the config runmode the access levels
for each runmode instead of using in each runmode a code like this?
unless ($self->authz->authorize('admin')) {
return $self->authz->forbidden;
}
Thank you.
Teddy
---------------------------------------------------------------------
Web Archive: http://www.mail-archive.com/[email protected]/
http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]