Users running a non-download version of Vanilla (pulled from github), on branch release/2019.016 or master from the last 2 weeks should upgrade to release/2019.017 or latest master for security reasons. Downloaded official open sources releases are not affected.

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

This discussion is related to the Maintenance Mode addon.
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);
            }
        }
Larkoliverraduner

Comments

Sign In or Register to comment.