зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
e02f557926
Коммит
d74ee16523
|
@ -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 %]
|
||||
<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 %]
|
||||
<input type="checkbox" name="compconfirm">
|
||||
and confirm bug (change status to <b>NEW</b>)
|
||||
<br>
|
||||
|
|
Загрузка…
Ссылка в новой задаче