From 8df3db566a3a937b45ebf11adb90d265e6f5e2d4 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Sun, 17 Nov 2019 20:45:02 +0100 Subject: initial checking of customized version 1.0rc9 --- scripts/editcomment.php | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 scripts/editcomment.php (limited to 'scripts/editcomment.php') diff --git a/scripts/editcomment.php b/scripts/editcomment.php new file mode 100644 index 0000000..a74ee30 --- /dev/null +++ b/scripts/editcomment.php @@ -0,0 +1,28 @@ +query("SELECT c.*, u.real_name + FROM {comments} c + INNER JOIN {users} u ON c.user_id = u.user_id + WHERE comment_id = ? AND task_id = ?", + array(Get::num('id', 0), Get::num('task_id', 0))); + +$page->assign('comment', $comment = $db->fetchRow($sql)); + +if (!$user->can_edit_comment($comment)) { + Flyspray::show_error(11); +} + +$page->pushTpl('editcomment.tpl'); + +?> -- cgit v1.2.3-54-g00ecf