diff options
author | bugreport%peshkin.net <> | 2004-08-05 01:17:09 +0200 |
---|---|---|
committer | bugreport%peshkin.net <> | 2004-08-05 01:17:09 +0200 |
commit | b54625a0ef75f691220cdb319ea2eea3ec27e04a (patch) | |
tree | 7f70ef296d34cb34c4d7b1017351253e7e1f8dc8 /Bugzilla/BugMail.pm | |
parent | 50e28bb8a4d457bf63f477b44df06adb22a71b59 (diff) | |
download | bugzilla-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/BugMail.pm')
-rw-r--r-- | Bugzilla/BugMail.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Bugzilla/BugMail.pm b/Bugzilla/BugMail.pm index 40a40dc2b..8731a9f72 100644 --- a/Bugzilla/BugMail.pm +++ b/Bugzilla/BugMail.pm @@ -720,7 +720,7 @@ sub NewProcessOnePerson ($$$$$$$$$$$$$) { # see the action of restricting the bug itself; the bug will just # quietly disappear from their radar. # - return unless CanSeeBug($id, $userid); + return unless $user->can_see_bug($id); # Drop any non-insiders if the comment is private return if (Param("insidergroup") && @@ -733,7 +733,7 @@ sub NewProcessOnePerson ($$$$$$$$$$$$$) { my $save_id = $dep_id; detaint_natural($dep_id) || warn("Unexpected Error: \@depbugs contains a non-numeric value: '$save_id'") && return; - return unless CanSeeBug($dep_id, $userid); + return unless $user->can_see_bug($dep_id); } my %mailhead = %defmailhead; |