HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
allow admins to view site while in maintenance mode - useful tweak
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); } }
2
Comments
@fh111 this feature is now supported out-of-the-box in the newest release for Vanilla Forums 3.3 😉