1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-01 12:20:44 +02:00

Flexpanel and infopanel behavior now depends on "Apply dashboard preferences to all administrators" setting.

This commit is contained in:
lonalore
2016-11-11 13:44:20 +01:00
parent 6306963fd0
commit 106e186cb7
6 changed files with 198 additions and 99 deletions

View File

@@ -15,6 +15,22 @@
*/
require_once('../class2.php');
if(varset($_GET['mode']) == 'customize')
{
$adminPref = e107::getConfig()->get('adminpref', 0);
// If not Main Admin and "Apply dashboard preferences to all administrators"
// is checked in admin theme settings.
if(!getperms("1") && $adminPref == 1)
{
e107::redirect('admin');
exit;
}
}
include_once(e107::coreTemplatePath('admin_icons')); // Needs to be loaded before infopanel AND in boot.php
if(vartrue($_GET['iframe']) == 1)