HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Options

allow admins to view site while in maintenance mode - useful tweak

fh111fh111 Vanilla Padawan ✭✭
edited July 2012 in Feedback

i don't know if this is the proper way to do it, but it works for me

personally i like to be able to view the site and dashboard while in mainenance mode. to make this possible i added the line

if (CheckPermission('Garden.Settings.Manage') == 0) {

right before

$Sender->Head->AddString($CustomCss);

so only if the user does not have a role assigned that lets them access the dashboard, they will see the maintenance mode screen

  if (CheckPermission('Garden.Settings.Manage') == 0) {
            $Sender->Head->AddString($CustomCss);
            }
        }

Comments

Sign In or Register to comment.