AdminToggle Macro is blank when in admin mode
webgui 8 does not require a 'turn admin off' switch.
This commit is contained in:
parent
7900cec5e8
commit
1e22418757
1 changed files with 1 additions and 0 deletions
|
|
@ -41,6 +41,7 @@ The URL of a template from the Macro/AdminToggle namespace to use for formatting
|
||||||
#-------------------------------------------------------------------
|
#-------------------------------------------------------------------
|
||||||
sub process {
|
sub process {
|
||||||
my $session = shift;
|
my $session = shift;
|
||||||
|
return "" if $session->isAdminOn;
|
||||||
return ""
|
return ""
|
||||||
unless $session->user->canUseAdminMode;
|
unless $session->user->canUseAdminMode;
|
||||||
my ($turnOn, $templateName) = @_;
|
my ($turnOn, $templateName) = @_;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue