Index: branches/RC/core/units/skins/skin_eh.php =================================================================== diff -u -r10098 -r11721 --- branches/RC/core/units/skins/skin_eh.php (.../skin_eh.php) (revision 10098) +++ branches/RC/core/units/skins/skin_eh.php (.../skin_eh.php) (revision 11721) @@ -2,7 +2,32 @@ class SkinEventHandler extends kDBEventHandler { + function mapPermissions() + { + parent::mapPermissions(); + $permissions = Array ( + 'OnItemBuild' => Array ('self' => true), + ); + + $this->permMapping = array_merge($this->permMapping, $permissions); + } + /** + * With "primary" special loads primary skin + * + * @param kEvent $event + * @return int + */ + function getPassedID(&$event) + { + if ($event->Special == 'primary') { + return Array ('IsPrimary' => 1); + } + + return parent::getPassedID($event); + } + + /** * Allows to set selected theme as primary * * @param kEvent $event