summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Bug.pm
diff options
context:
space:
mode:
authorbugreport%peshkin.net <>2004-08-05 01:17:09 +0200
committerbugreport%peshkin.net <>2004-08-05 01:17:09 +0200
commitb54625a0ef75f691220cdb319ea2eea3ec27e04a (patch)
tree7f70ef296d34cb34c4d7b1017351253e7e1f8dc8 /Bugzilla/Bug.pm
parent50e28bb8a4d457bf63f477b44df06adb22a71b59 (diff)
downloadbugzilla-b54625a0ef75f691220cdb319ea2eea3ec27e04a.tar.gz
bugzilla-b54625a0ef75f691220cdb319ea2eea3ec27e04a.tar.xz
Bug 186093: Move CanSeeBug to User.pm and make User.pm usable by templates
r=kiko a=justdave
Diffstat (limited to 'Bugzilla/Bug.pm')
-rwxr-xr-xBugzilla/Bug.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm
index 2cac77ed3..01d2321c4 100755
--- a/Bugzilla/Bug.pm
+++ b/Bugzilla/Bug.pm
@@ -133,7 +133,7 @@ sub initBug {
}
}
- $self->{'whoid'} = $user_id;
+ $self->{'who'} = new Bugzilla::User($user_id);
my $query = "
SELECT
@@ -156,7 +156,7 @@ sub initBug {
&::SendSQL($query);
my @row = ();
- if ((@row = &::FetchSQLData()) && &::CanSeeBug($bug_id, $self->{'whoid'})) {
+ if ((@row = &::FetchSQLData()) && $self->{'who'}->can_see_bug($bug_id)) {
my $count = 0;
my %fields;
foreach my $field ("bug_id", "alias", "product_id", "product", "version",