From 4f4c25bb8d7bacecad8f69363d96483ea92ffc32 Mon Sep 17 00:00:00 2001
From: "travis%sedsystems.ca" <>
Date: Fri, 21 Jan 2005 07:22:07 +0000
Subject: Bug 266579 : Users without privs can confirm bugs by assigning to
themselves first, without having canconfirm privs Patch by LpSolit@gmail.com
r=myk a=justdave
---
template/en/default/bug/create/create.html.tmpl | 2 +
template/en/default/bug/knob.html.tmpl | 93 +++++++++++++------------
template/en/default/global/user-error.html.tmpl | 12 ++--
template/en/default/global/userselect.html.tmpl | 5 +-
4 files changed, 62 insertions(+), 50 deletions(-)
(limited to 'template/en')
diff --git a/template/en/default/bug/create/create.html.tmpl b/template/en/default/bug/create/create.html.tmpl
index dd0d4f13c..d22ab8dc6 100644
--- a/template/en/default/bug/create/create.html.tmpl
+++ b/template/en/default/bug/create/create.html.tmpl
@@ -187,6 +187,7 @@ function set_assign_to() {
[% INCLUDE global/userselect.html.tmpl
name => "assigned_to"
value => assigned_to
+ disabled => assigned_to_disabled
size => 32
emptyok => 1
%]
@@ -200,6 +201,7 @@ function set_assign_to() {
[% INCLUDE global/userselect.html.tmpl
name => "cc"
value => cc
+ disabled => cc_disabled
size => 45
emptyok => 1
multiple => 5
diff --git a/template/en/default/bug/knob.html.tmpl b/template/en/default/bug/knob.html.tmpl
index cc8ca32b5..035db1ae5 100644
--- a/template/en/default/bug/knob.html.tmpl
+++ b/template/en/default/bug/knob.html.tmpl
@@ -43,19 +43,20 @@
[% knum = knum + 1 %]
[% END %]
- [% IF bug.user.canedit %]
- [% IF bug.isopened %]
- [% IF bug.bug_status != "ASSIGNED" && bug.user.canconfirm %]
-
-
-
- [% knum = knum + 1 %]
- [% END %]
+ [% IF bug.isopened && bug.bug_status != "ASSIGNED" && bug.user.canedit
+ && (!bug.isunconfirmed || bug.user.canconfirm) %]
+
+
+
+ [% knum = knum + 1 %]
+ [% END %]
+ [% IF bug.user.canedit || bug.user.isreporter %]
+ [% IF bug.isopened %]
[% IF bug.resolution %]