fetch(); 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']); $can_edit = ($user['priv'] >= $apps['notes']['edit'] && $user['id'] == $note['owner']); $can_delete = ($user['priv'] >= $apps['notes']['delete'] && $user['id'] == $note['owner']); $can_move = ($user['priv'] >= $apps['notes']['move'] && $user['id'] == $note['owner']); require("tpl/notes/view.php");