diff options
author | gerv%gerv.net <> | 2002-08-20 04:17:18 +0000 |
---|---|---|
committer | gerv%gerv.net <> | 2002-08-20 04:17:18 +0000 |
commit | 9c0a26d3a5a35788694f5f284c69b995a3298c86 (patch) | |
tree | 15cc4cfb1e5e9fb7bcc3898530776f44c7b52492 /Bugzilla | |
parent | e6fff23fcd99b09511b62c4db4eca658fe5257c4 (diff) | |
download | bugs-9c0a26d3a5a35788694f5f284c69b995a3298c86.tar bugs-9c0a26d3a5a35788694f5f284c69b995a3298c86.tar.gz bugs-9c0a26d3a5a35788694f5f284c69b995a3298c86.tar.bz2 bugs-9c0a26d3a5a35788694f5f284c69b995a3298c86.tar.xz bugs-9c0a26d3a5a35788694f5f284c69b995a3298c86.zip |
Bug 143286 - Add support for Insiders, Private comments, Private Attachments. Patch by bugreport@peshkin.net; r=gerv.
Diffstat (limited to 'Bugzilla')
-rw-r--r-- | Bugzilla/Attachment.pm | 5 | ||||
-rw-r--r-- | Bugzilla/Search.pm | 3 |
2 files changed, 6 insertions, 2 deletions
diff --git a/Bugzilla/Attachment.pm b/Bugzilla/Attachment.pm index 23e634276..b4216d4c6 100644 --- a/Bugzilla/Attachment.pm +++ b/Bugzilla/Attachment.pm @@ -49,7 +49,7 @@ sub query # of hashes in which each hash represents a single attachment. &::SendSQL(" SELECT attach_id, creation_ts, mimetype, description, ispatch, - isobsolete, submitter_id + isobsolete, isprivate, submitter_id FROM attachments WHERE bug_id = $bugid ORDER BY attach_id "); my @attachments = (); @@ -57,7 +57,8 @@ sub query my %a; my $submitter_id; ($a{'attachid'}, $a{'date'}, $a{'contenttype'}, $a{'description'}, - $a{'ispatch'}, $a{'isobsolete'}, $submitter_id) = &::FetchSQLData(); + $a{'ispatch'}, $a{'isobsolete'}, $a{'isprivate'}, $submitter_id) + = &::FetchSQLData(); # Format the attachment's creation/modification date into a standard # format (YYYY-MM-DD HH:MM) diff --git a/Bugzilla/Search.pm b/Bugzilla/Search.pm index 257b7656d..9ce9d78f4 100644 --- a/Bugzilla/Search.pm +++ b/Bugzilla/Search.pm @@ -312,6 +312,9 @@ sub init { "^long_?desc," => sub { my $table = "longdescs_$chartid"; push(@supptables, "longdescs $table"); + if (Param("insidergroup") && !UserInGroup(Param("insidergroup"))) { + push(@wherepart, "$table.isprivate < 1") ; + } push(@wherepart, "$table.bug_id = bugs.bug_id"); $f = "$table.thetext"; }, |