Bug 151714 - user with no canconfirm permission should not get option to

mark bugs they reported as NEW
r=jouni, myk
This commit is contained in:
bbaetz%student.usyd.edu.au 2002-07-09 01:17:17 +00:00
Родитель e02f557926
Коммит d74ee16523
2 изменённых файлов: 8 добавлений и 6 удалений

Просмотреть файл

@ -275,7 +275,9 @@ sub show_bug {
|| $::userid == $bug{'qa_contact'}
|| $::userid == $bug{'assigned_to'}
|| UserInGroup("editbugs");
$user{'canconfirm'} = ($::userid == 0) || UserInGroup("canconfirm");
$user{'canconfirm'} = ($::userid == 0)
|| UserInGroup("canconfirm")
|| UserInGroup("editbugs");
# Bug states
$bug{'isunconfirmed'} = ($bug{'bug_status'} eq $::unconfirmedstate);

Просмотреть файл

@ -371,7 +371,7 @@
[% knum = 1 %]
[% IF bug.bug_status == "UNCONFIRMED" &&
(user.canedit || user.canconfirm) %]
user.canconfirm %]
<input type="radio" name="knob" value="confirm">
Confirm bug (change status to <b>NEW</b>)
<br>
@ -380,7 +380,7 @@
[% IF user.canedit %]
[% IF bug.isopened %]
[% IF bug.bug_status != "ASSIGNED" %]
[% IF bug.bug_status != "ASSIGNED" && user.canconfirm %]
<input type="radio" name="knob" value="accept">
Accept bug (
[% "confirm bug, " IF bug.isunconfirmed %]change
@ -424,7 +424,7 @@
}"
value="[% bug.assigned_to_email FILTER html %]">
<br>
[% IF bug.isunconfirmed %]
[% IF bug.isunconfirmed && user.canconfirm %]
&nbsp;&nbsp;&nbsp;&nbsp;<input type="checkbox" name="andconfirm">
and confirm bug (change status to <b>NEW</b>)
<br>
@ -436,7 +436,7 @@
[% "and QA contact" IF useqacontact %]
of selected component
<br>
[% IF bug.isunconfirmed %]
[% IF bug.isunconfirmed && user.canconfirm %]
&nbsp;&nbsp;&nbsp;&nbsp;<input type="checkbox" name="compconfirm">
and confirm bug (change status to <b>NEW</b>)
<br>