Index: branches/5.0.x/core/units/fck/fck_eh.php =================================================================== diff -u -r12299 -r12511 --- branches/5.0.x/core/units/fck/fck_eh.php (.../fck_eh.php) (revision 12299) +++ branches/5.0.x/core/units/fck/fck_eh.php (.../fck_eh.php) (revision 12511) @@ -1,6 +1,6 @@ array('self' => true), - 'OnLoadResources' => array('self' => true), - 'OnRenameFile' => array('self' => true), - 'OnDeleteFiles' => array('self' => true), - 'OnGetFoldersFilesList' => array('self' => true), - 'OnCreateFolder' => array('self' => true), - 'OnUploadFile' => array('self' => true), - ); - - $this->permMapping = array_merge($this->permMapping, $permissions); - } - /** * Checks permissions of user * @@ -42,6 +24,7 @@ function CheckPermission(&$event) { if ($this->Application->LoggedIn() && $this->Application->IsAdmin()) { + // this limits all event execution only to logged-in users in admin return true; }