Index: branches/5.0.x/core/units/fck/fck_eh.php =================================================================== diff -u -N -r12734 -r12960 --- branches/5.0.x/core/units/fck/fck_eh.php (.../fck_eh.php) (revision 12734) +++ branches/5.0.x/core/units/fck/fck_eh.php (.../fck_eh.php) (revision 12960) @@ -1,6 +1,6 @@ "; - echo $res; - } + echo $res; + } - function OnRenameFile(&$event) { $event->status = erSTOP; + + if ($this->Application->CheckPermission('SYSTEM_ACCESS.READONLY', 1)) { + return; + } + $old_name = $this->Application->GetVar('old_name'); $new_name = $this->Application->GetVar('new_name'); $folder = $this->Application->GetVar('folder'); @@ -117,6 +121,11 @@ function OnDeleteFiles(&$event) { $event->status = erSTOP; + + if ($this->Application->CheckPermission('SYSTEM_ACCESS.READONLY', 1)) { + return; + } + $files = trim($this->Application->GetVar('files'),'|'); // echo $files; $a_files = explode('|', $files); @@ -150,6 +159,10 @@ { $event->status = erSTOP; + if ($this->Application->CheckPermission('SYSTEM_ACCESS.READONLY', 1)) { + return; + } + $new_folder = $this->Application->GetVar('new_folder'); $current_folder = $this->Application->GetVar('current_folder'); $folderPath = WRITEABLE . '/user_files' . '/' . $current_folder . "/" . $new_folder; @@ -181,6 +194,11 @@ function OnUploadFile(&$event) { $event->status = erSTOP; + + if ($this->Application->CheckPermission('SYSTEM_ACCESS.READONLY', 1)) { + return; + } + $fck_helper =& $this->Application->recallObject('FCKHelper'); /* @var fck_helper fckFCKHelper*/ $fck_helper->UploadFile();