Compare commits
2 Commits
fc17a1a312
...
63899ffa8f
Author | SHA1 | Date | |
---|---|---|---|
63899ffa8f | |||
5c381740ff |
@ -98,7 +98,7 @@ class NotesModel extends Database
|
||||
$checkParams = $this->isAdmin() ? [$noteId] : [$noteId, $userId];
|
||||
$checkStmt->execute($checkParams);
|
||||
if ($checkStmt->fetch()) {
|
||||
return ['success' => true, 'message' => 'No changes made to the note.']; // Or false if you prefer
|
||||
return ['success' => true, 'message' => 'No changes made to the note.'];
|
||||
}
|
||||
return ['success' => false, 'message' => 'Note not found or permission denied.'];
|
||||
} catch (PDOException $e) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user