1
0
mirror of https://github.com/e107inc/e107.git synced 2025-04-15 10:02:02 +02:00

Sync with 1.0. Allow Main Admin to preview sitedown.php while logged in.

This commit is contained in:
CaMer0n 2012-04-26 02:50:06 +00:00
parent c93c1a6829
commit dda1140bc1

View File

@ -18,7 +18,7 @@
*/
require_once('class2.php');
if (!varset($pref['maintainance_flag']))
if (!varset($pref['maintainance_flag']) && !getperms('0')) // Allow main admin to test and view template before going offline.
{
header('location: '.SITEURL);
exit();