Index: branches/RC/core/units/admin/admin_events_handler.php =================================================================== diff -u -N -r10751 -r10780 --- branches/RC/core/units/admin/admin_events_handler.php (.../admin_events_handler.php) (revision 10751) +++ branches/RC/core/units/admin/admin_events_handler.php (.../admin_events_handler.php) (revision 10780) @@ -14,7 +14,7 @@ 'OnGetCSV' => Array('self' => true), 'OnCSVImportBegin' => Array('self' => true), 'OnCSVImportStep' => Array('self' => true), - 'OnDropTempTablesByWID' => array('self' => true), + 'OnDropTempTablesByWID' => Array('self' => true), ); $this->permMapping = array_merge($this->permMapping, $permissions); } @@ -36,6 +36,23 @@ return true; } + $tools_events = Array ( + 'OnBackup' => 'in-portal:backup.view', + 'OnBackupProgress' => 'in-portal:backup.view', + 'OnDeleteBackup' => 'in-portal:backup.view', + 'OnBackupCancel' => 'in-portal:backup.view', + + 'OnRestore' => 'in-portal:restore.view', + 'OnRestoreProgress' => 'in-portal:restore.view', + 'OnRestoreCancel' => 'in-portal:backup.view', + + 'OnSqlQuery' => 'in-portal:sql_query.view', + ); + + if (array_key_exists($event->Name, $tools_events)) { + return $this->Application->CheckPermission($tools_events[$event->Name]); + } + return parent::CheckPermission($event); }