diff --git a/app/edit/filesave.php b/app/edit/file_save.php similarity index 97% rename from app/edit/filesave.php rename to app/edit/file_save.php index 89527c6172..fa231ac075 100644 --- a/app/edit/filesave.php +++ b/app/edit/file_save.php @@ -31,7 +31,7 @@ require_once "resources/check_auth.php"; //check permissions - if (permission_exists('script_editor_save')) { + if (permission_exists('edit_save')) { //access granted } else { @@ -54,7 +54,6 @@ //run the code if file path exists $file_path = $_POST["filepath"]; if ($file_path != '') { - try { //save file content $file_path = realpath($file_path);