diff options
Diffstat (limited to 'lib/Controller/NoteController.php')
-rwxr-xr-x | lib/Controller/NoteController.php | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/Controller/NoteController.php b/lib/Controller/NoteController.php index 88b9b32..30d57ad 100755 --- a/lib/Controller/NoteController.php +++ b/lib/Controller/NoteController.php @@ -653,9 +653,11 @@ public function getOpusEncoder(){ * @NoAdminRequired * @NoCSRFRequired */ - public function deleteNote($path){ - $this->CarnetFolder->get($path)->delete(); - } + public function deleteNote($path){ + if ($path === "untitleddonotedit.sqd") + return; + $this->CarnetFolder->get($path)->delete(); + } /** * @NoAdminRequired @@ -665,6 +667,8 @@ public function getOpusEncoder(){ if($this->CarnetFolder->nodeExists($to)){ throw new Exception("Already exists"); } + if ($from === "untitleddonotedit.sqd") + return; $this->CarnetFolder->get($from)->move($this->CarnetFolder->getFullPath($to)); $actions = array(); $actions[0] = array(); |