Commit: c0ac3cf8c1dcee54fef9bd0515cf82e723904590 Author: Omar Shaban <[email protected]> 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> -- PHP Webmaster List Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
