Index: trunk/core/units/stylesheets/stylesheets_config.php =================================================================== diff -u -r4663 -r4685 --- trunk/core/units/stylesheets/stylesheets_config.php (.../stylesheets_config.php) (revision 4663) +++ trunk/core/units/stylesheets/stylesheets_config.php (.../stylesheets_config.php) (revision 4685) @@ -59,6 +59,8 @@ 'style_edit' => Array('prefixes' => Array('selectors'), 'format' => "!la_title_EditingStyle! '#selectors_titlefield#'"), ), + + 'PermSection' => Array('main' => 'in-portal:configure_styles'), 'Sections' => Array( 'in-portal:configure_styles' => Array( Index: trunk/kernel/units/selectors/selectors_event_handler.php =================================================================== diff -u -r4287 -r4685 --- trunk/kernel/units/selectors/selectors_event_handler.php (.../selectors_event_handler.php) (revision 4287) +++ trunk/kernel/units/selectors/selectors_event_handler.php (.../selectors_event_handler.php) (revision 4685) @@ -5,6 +5,22 @@ class SelectorsEventHandler extends InpDBEventHandler { + /** + * Allows to override standart permission mapping + * + */ + function mapPermissions() + { + parent::mapPermissions(); + $permissions = Array( + 'OnResetToBase' => Array('subitem' => 'add|edit'), + 'OnMassResetToBase' => Array('subitem' => 'add|edit'), + + 'OnOpenStyleEditor' => Array('subitem' => 'add|edit'), + 'OnSaveStyle' => Array('subitem' => 'add|edit'), + ); + $this->permMapping = array_merge($this->permMapping, $permissions); + } /** * Occures before an item has been cloned Index: trunk/kernel/units/stylesheets/stylesheets_config.php =================================================================== diff -u -r4663 -r4685 --- trunk/kernel/units/stylesheets/stylesheets_config.php (.../stylesheets_config.php) (revision 4663) +++ trunk/kernel/units/stylesheets/stylesheets_config.php (.../stylesheets_config.php) (revision 4685) @@ -59,6 +59,8 @@ 'style_edit' => Array('prefixes' => Array('selectors'), 'format' => "!la_title_EditingStyle! '#selectors_titlefield#'"), ), + + 'PermSection' => Array('main' => 'in-portal:configure_styles'), 'Sections' => Array( 'in-portal:configure_styles' => Array( Index: trunk/core/units/selectors/selectors_event_handler.php =================================================================== diff -u -r4287 -r4685 --- trunk/core/units/selectors/selectors_event_handler.php (.../selectors_event_handler.php) (revision 4287) +++ trunk/core/units/selectors/selectors_event_handler.php (.../selectors_event_handler.php) (revision 4685) @@ -5,6 +5,22 @@ class SelectorsEventHandler extends InpDBEventHandler { + /** + * Allows to override standart permission mapping + * + */ + function mapPermissions() + { + parent::mapPermissions(); + $permissions = Array( + 'OnResetToBase' => Array('subitem' => 'add|edit'), + 'OnMassResetToBase' => Array('subitem' => 'add|edit'), + + 'OnOpenStyleEditor' => Array('subitem' => 'add|edit'), + 'OnSaveStyle' => Array('subitem' => 'add|edit'), + ); + $this->permMapping = array_merge($this->permMapping, $permissions); + } /** * Occures before an item has been cloned