Skip to content

Commit c0ac3cf

Browse files
committed
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
1 parent 218cb88 commit c0ac3cf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

www/bug.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -679,12 +679,13 @@
679679

680680
<?php
681681
}
682+
682683
if ($bug_id !== 'PREVIEW') {
683684
echo '<div class="controls">', "\n",
684685
control(0, 'View'),
685686
($bug['private'] == 'N' ? control(3, 'Add Comment') : ''),
686687
control(1, 'Developer'),
687-
control(2, 'Edit'),
688+
(!$email || $bug['email'] == $email? control(2, 'Edit') : ''),
688689
'</div>', "\n";
689690
?>
690691
<div class="clear"></div>

0 commit comments

Comments
 (0)