don't let non-priviledged users turn on the admin; additional logic to kick them out of admin when they're no longer logged in would be nice too.

This commit is contained in:
Scott Walters 2013-09-24 12:27:50 -05:00
parent 1ac133d955
commit 3aaa72f12c
2 changed files with 5 additions and 1 deletions

View file

@ -47,6 +47,8 @@ Handle every op=admin request
sub handler {
my ($session) = @_;
return "" unless ($session->user->canUseAdminMode);
if ( $session->form->get("op") eq "admin" ) {
if ( $session->form->get("plugin") ) {
my $id = $session->form->get('id');

View file

@ -19,7 +19,9 @@ Package WebGUI::Operation::Admin
=head1 DESCRIPTION
Operation handler for admin functions
Operation handler for admin functions.
See also L<WebGUI::Content::Admin>, which handles C<op=admin> requests.
=cut