Index: branches/5.1.x/core/units/themes/themes_eh.php =================================================================== diff -u -N -r12657 -r13086 --- branches/5.1.x/core/units/themes/themes_eh.php (.../themes_eh.php) (revision 12657) +++ branches/5.1.x/core/units/themes/themes_eh.php (.../themes_eh.php) (revision 13086) @@ -1,6 +1,6 @@ Application->CheckPermission('SYSTEM_ACCESS.READONLY', 1)) { + $event->status = erFAIL; return; } @@ -123,7 +124,7 @@ */ function OnChangeTheme(&$event) { - if ($this->Application->IsAdmin()) { + if ($this->Application->isAdminUser) { // for structure theme dropdown $this->Application->StoreVar('theme_id', $this->Application->GetVar('theme')); $this->Application->StoreVar('RefreshStructureTree', 1); @@ -152,7 +153,7 @@ { parent::SetCustomQuery($event); - if ($event->Special == 'enabled' || !$this->Application->IsAdmin()) { + if ($event->Special == 'enabled' || !$this->Application->isAdminUser) { // "enabled" special or Front-End $object =& $event->getObject();