summaryrefslogtreecommitdiffstats
path: root/Bug.pm
diff options
context:
space:
mode:
Diffstat (limited to 'Bug.pm')
-rwxr-xr-xBug.pm8
1 files changed, 5 insertions, 3 deletions
diff --git a/Bug.pm b/Bug.pm
index dd91d6f3f..14876dbe3 100755
--- a/Bug.pm
+++ b/Bug.pm
@@ -379,9 +379,11 @@ sub user {
|| ($self->{'qa_contact'} && $::userid == $self->{'qa_contact'}{'id'})
|| $::userid == $self->{'assigned_to'}{'id'}
|| &::UserInGroup("editbugs");
- $self->{'user'}->{'canconfirm'} = ($::userid == 0)
- || &::UserInGroup("canconfirm")
- || &::UserInGroup("editbugs");
+ $self->{'user'}->{'canconfirm'} = $::userid == 0
+ || ($self->{'qa_contact'} && $::userid == $self->{'qa_contact'}{'id'})
+ || $::userid == $self->{'assigned_to'}{'id'}
+ || &::UserInGroup("editbugs")
+ || &::UserInGroup("canconfirm");
return $self->{'user'};
}