com web/bugs: Fixed Bug #68801 Edit button shall not show up if the logged in user is not the reporter: www/bug.php
| From: | sobak@php.net | Date: | Mon, 12 Jan 2015 14:25:07 +0000 |
| Subject: | com web/bugs: Fixed Bug #68801 Edit button shall not show up if the logged in user is not the reporter: www/bug.php | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-20554@lists.php.net to get a copy of this message | ||
Commit: c0ac3cf8c1dcee54fef9bd0515cf82e723904590
Author: Omar Shaban <omars@php.net> Sun, 11 Jan 2015 21:10:47 +0200
Parents: 218cb889d56571bc041eda4d7e095597139174bf
Branches: master
Link: http://git.php.net/?p=web/bugs.git;a=commitdiff;h=c0ac3cf8c1dcee54fef9bd0515cf82e723904590
Log:
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
Bugs:
https://bugs.php.net/68801
Changed paths:
M www/bug.php
Diff:
diff --git a/www/bug.php b/www/bug.php
index a340e49..742bd6b 100644
--- a/www/bug.php
+++ b/www/bug.php
@@ -679,12 +679,13 @@ if (!$show_bug_info) {
<?php
}
+
if ($bug_id !== 'PREVIEW') {
echo '<div class="controls">', "\n",
control(0, 'View'),
($bug['private'] == 'N' ? control(3, 'Add Comment') :
''),
control(1, 'Developer'),
- control(2, 'Edit'),
+ (!$email || $bug['email'] == $email? control(2, 'Edit') : ''),
'</div>', "\n";
?>
<div class="clear"></div>