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:
parent
1ac133d955
commit
3aaa72f12c
2 changed files with 5 additions and 1 deletions
|
|
@ -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');
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue