= $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");