AdminToggle Macro is blank when in admin mode

webgui 8 does not require a 'turn admin off' switch.
This commit is contained in:
david delikat 2013-09-25 17:29:42 -05:00
parent 7900cec5e8
commit 1e22418757

View file

@ -41,6 +41,7 @@ The URL of a template from the Macro/AdminToggle namespace to use for formatting
#-------------------------------------------------------------------
sub process {
my $session = shift;
return "" if $session->isAdminOn;
return ""
unless $session->user->canUseAdminMode;
my ($turnOn, $templateName) = @_;