From c0ac3cf8c1dcee54fef9bd0515cf82e723904590 Mon Sep 17 00:00:00 2001 From: Omar Shaban Date: Sun, 11 Jan 2015 21:10:47 +0200 Subject: [PATCH] Fixed Bug #68801 Edit button shall not show up if the logged in user is not the reporter Edit button now only shows up if no one is logged in, or the logged in user is the ticket creator --- www/bug.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/www/bug.php b/www/bug.php index a340e499..742bd6b8 100644 --- a/www/bug.php +++ b/www/bug.php @@ -679,12 +679,13 @@ ', "\n", control(0, 'View'), ($bug['private'] == 'N' ? control(3, 'Add Comment') : ''), control(1, 'Developer'), - control(2, 'Edit'), + (!$email || $bug['email'] == $email? control(2, 'Edit') : ''), '', "\n"; ?>