From d0060968b77c39bdf8abffb071c971c166b59edb Mon Sep 17 00:00:00 2001 From: Nicolas BERNSTEIN Date: Sat, 17 Sep 2011 16:48:29 +0200 Subject: First commit. --- lib/notes/view.php | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 lib/notes/view.php (limited to 'lib/notes/view.php') diff --git a/lib/notes/view.php b/lib/notes/view.php new file mode 100644 index 0000000..f81b6d7 --- /dev/null +++ b/lib/notes/view.php @@ -0,0 +1,21 @@ += $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"); + -- cgit v1.2.3