diff options
Diffstat (limited to 'Bugzilla/Bug.pm')
-rwxr-xr-x | Bugzilla/Bug.pm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm index 53b8bd193..8c0998217 100755 --- a/Bugzilla/Bug.pm +++ b/Bugzilla/Bug.pm @@ -390,7 +390,7 @@ sub user { use Bugzilla; my @movers = map { trim $_ } split(",", Param("movers")); - my $canmove = Param("move-enabled") && Bugzilla->user && + my $canmove = Param("move-enabled") && Bugzilla->user->id && (lsearch(\@movers, Bugzilla->user->login) != -1); # In the below, if the person hasn't logged in, then we treat them @@ -399,12 +399,12 @@ sub user { # Display everything as if they have all the permissions in the # world; their permissions will get checked when they log in and # actually try to make the change. - my $privileged = (!Bugzilla->user) + my $privileged = (!Bugzilla->user->id) || Bugzilla->user->in_group("editbugs") || Bugzilla->user->id == $self->{'assigned_to'}{'id'} || (Param('useqacontact') && $self->{'qa_contact'} && Bugzilla->user->id == $self->{'qa_contact'}{'id'}); - my $isreporter = Bugzilla->user && + my $isreporter = Bugzilla->user->id && Bugzilla->user->id == $self->{'reporter'}{'id'}; my $canedit = $privileged || $isreporter; |