From fd2d82835a1a95f45b41e203c4d017f114c70af9 Mon Sep 17 00:00:00 2001 From: Scott Walters Date: Fri, 27 Sep 2013 11:58:02 -0500 Subject: [PATCH] Revert "AdminToggle Macro is blank when in admin mode" apparently, $session->isAdminOn is meaningless in wG8. this is a poor situation that it exists but is busted. have to do this same thing another way. This reverts commit 1e22418757038d987b54a4c9dbd453bc8ae73936. --- lib/WebGUI/Macro/AdminToggle.pm | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/WebGUI/Macro/AdminToggle.pm b/lib/WebGUI/Macro/AdminToggle.pm index b1ed9676d..233d71b41 100644 --- a/lib/WebGUI/Macro/AdminToggle.pm +++ b/lib/WebGUI/Macro/AdminToggle.pm @@ -41,7 +41,6 @@ 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) = @_;