diff options
Diffstat (limited to 'lib/notes/delete.php')
-rw-r--r-- | lib/notes/delete.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/notes/delete.php b/lib/notes/delete.php index e8ef31e..43dbf44 100644 --- a/lib/notes/delete.php +++ b/lib/notes/delete.php @@ -4,7 +4,7 @@ assert_redir(count($args) >= 3, 'notes'); $noteid = intval($args[2]); $note = mysql_fetch_assoc(sql("SELECT owner FROM notes WHERE id = $noteid")); -assert_error($note && $note['owner'] == $user['id'], +assert_error($note && ($note['owner'] == $user['id'] || $user['priv'] >= $priv_admin), "This note does not exist, or you are not allowed to delete it."); token_validate("Do you really want to delete this note ? All children notes will become children of the root note.", "view-notes-$noteid"); |