CGI-Application-Plugin-Authorization
view release on metacpan or search on metacpan
lib/CGI/Application/Plugin/Authorization.pm view on Meta::CPAN
= \&CGI::Application::Plugin::_::Authorization::authz;
*{ $callpkg . '::authorization' }
= \&CGI::Application::Plugin::_::Authorization::authz;
}
if ( !UNIVERSAL::isa( $callpkg, 'CGI::Application' ) ) {
warn
"Calling package is not a CGI::Application module so not setting up the prerun hook. If you are using \@ISA instead of 'use base', make sure it is in a BEGIN { } block, and make sure these statements appear before the plugin is loaded";
}
elsif ( !UNIVERSAL::can( $callpkg, 'add_callback' ) ) {
warn
"You are using an older version of CGI::Application that does not support callbacks, so the prerun method can not be registered automatically (Lookup 'CGI::Application CALLBACKS' in the docs for more info)";
}
else {
$callpkg->add_callback( prerun => \&prerun_callback );
}
}
=head1 NAME
CGI::Application::Plugin::Authorization - Authorization framework for
CGI::Application
( run in 0.949 second using v1.01-cache-2.11-cpan-9b1e4054eb1 )