Index: branches/5.0.x/core/install/upgrades.sql =================================================================== diff -u -r12520 -r12568 --- branches/5.0.x/core/install/upgrades.sql (.../upgrades.sql) (revision 12520) +++ branches/5.0.x/core/install/upgrades.sql (.../upgrades.sql) (revision 12568) @@ -1493,4 +1493,6 @@ INSERT INTO ConfigurationAdmin VALUES ('HTTPAuthBypassIPs', 'la_section_SettingsAdmin', 'la_config_HTTPAuthBypassIPs', 'text', '', '', 40.15, 0, 0); INSERT INTO ConfigurationValues VALUES (DEFAULT, 'HTTPAuthBypassIPs', '', 'In-Portal', 'in-portal:configure_advanced'); +INSERT INTO Permissions VALUES (DEFAULT, 'in-portal:service.edit', 11, 1, 1, 0); + UPDATE Modules SET Version = '5.0.1', Loaded = 1 WHERE Name = 'In-Portal'; \ No newline at end of file Index: branches/5.0.x/core/units/admin/admin_config.php =================================================================== diff -u -r12495 -r12568 --- branches/5.0.x/core/units/admin/admin_config.php (.../admin_config.php) (revision 12495) +++ branches/5.0.x/core/units/admin/admin_config.php (.../admin_config.php) (revision 12568) @@ -1,6 +1,6 @@ 'service', 'label' => 'la_tab_Service', 'url' => Array ('t' => 'tools/system_tools', 'pass' => 'm'), - 'permissions' => Array ('view'), + 'permissions' => Array ('view', 'edit'), 'priority' => 6, 'type' => stTREE, ), Index: branches/5.0.x/core/units/admin/admin_events_handler.php =================================================================== diff -u -r12560 -r12568 --- branches/5.0.x/core/units/admin/admin_events_handler.php (.../admin_events_handler.php) (revision 12560) +++ branches/5.0.x/core/units/admin/admin_events_handler.php (.../admin_events_handler.php) (revision 12568) @@ -1,6 +1,6 @@ Application->isDebugMode(false) && in_array($event->Name, $system_events)) { + if ($this->Application->CheckPermission($event->getSection() . '.edit') && in_array($event->Name, $system_events)) { + // events from "Tools -> System Tools" section are controlled via that section "edit" permission return true; } Index: branches/5.0.x/core/install/install_data.sql =================================================================== diff -u -r12557 -r12568 --- branches/5.0.x/core/install/install_data.sql (.../install_data.sql) (revision 12557) +++ branches/5.0.x/core/install/install_data.sql (.../install_data.sql) (revision 12568) @@ -645,6 +645,7 @@ INSERT INTO Permissions VALUES (DEFAULT, 'CATEGORY.MODIFY', 11, 1, 0, 0); INSERT INTO Permissions VALUES (DEFAULT, 'in-portal:service.view', 11, 1, 1, 0); +INSERT INTO Permissions VALUES (DEFAULT, 'in-portal:service.edit', 11, 1, 1, 0); INSERT INTO Permissions VALUES (DEFAULT, 'in-portal:agents.delete', 11, 1, 1, 0); INSERT INTO Permissions VALUES (DEFAULT, 'in-portal:agents.edit', 11, 1, 1, 0);