summaryrefslogtreecommitdiff
path: root/lib/notes/view.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/notes/view.php')
-rw-r--r--lib/notes/view.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/notes/view.php b/lib/notes/view.php
index f81b6d7..a6a014c 100644
--- a/lib/notes/view.php
+++ b/lib/notes/view.php
@@ -9,7 +9,7 @@ $note = mysql_fetch_assoc(sql(
"LEFT JOIN notes nb ON na.parent = nb.id LEFT JOIN account ON account.id = na.owner ".
"WHERE na.id = $noteid"
));
-assert_error($note && ($note['public'] != 0 || $note['owner'] == $user['id']),
+assert_error($note && ($note['public'] != 0 || $note['owner'] == $user['id'] || $user['priv'] >= $priv_admin),
"This note does not exist, or you are not allowed to see it.");
$can_new = ($user['priv'] >= $apps['notes']['new'] && $user['id'] == $note['owner']);