summaryrefslogtreecommitdiffstats
path: root/globals.pl
diff options
context:
space:
mode:
authorendico%mozilla.org <>2001-03-13 07:35:50 +0100
committerendico%mozilla.org <>2001-03-13 07:35:50 +0100
commitf9ad36979ee316009fe69972da97702ec14110ce (patch)
treedb3b7d3ae96630345dc9f738b7c48433dddbc1e8 /globals.pl
parent771e38ec238c4814bfbe756d80e991eda60f294b (diff)
downloadbugzilla-f9ad36979ee316009fe69972da97702ec14110ce.tar.gz
bugzilla-f9ad36979ee316009fe69972da97702ec14110ce.tar.xz
Checking in Jake's <jake@acutex.net> interim patches from bug 30694. Bugzilla was showing bug summaries to everyone, even if they didn't have permission to view the bug. Jake's quick solution is to not display the bug at all if it is in a group no matter who is viewing it. The correct solution would be display the summary if the viewer had the proper permissions.
Diffstat (limited to 'globals.pl')
-rw-r--r--globals.pl7
1 files changed, 4 insertions, 3 deletions
diff --git a/globals.pl b/globals.pl
index 4ba85ed90..d112b0c8f 100644
--- a/globals.pl
+++ b/globals.pl
@@ -775,9 +775,9 @@ sub GetBugLink {
PushGlobalSQLState();
# Get this bug's info from the SQL Database
- SendSQL("select bugs.bug_status, resolution, short_desc
+ SendSQL("select bugs.bug_status, resolution, short_desc, groupset
from bugs where bugs.bug_id = $bug_num");
- my ($bug_stat, $bug_res, $bug_desc) = (FetchSQLData());
+ my ($bug_stat, $bug_res, $bug_desc, $bug_grp) = (FetchSQLData());
# Format the retrieved information into a link
if ($bug_stat eq "UNCONFIRMED") { $link_return .= "<i>" }
@@ -786,7 +786,8 @@ sub GetBugLink {
$link_text = value_quote($link_text);
$link_return .= qq{<a href="show_bug.cgi?id=$bug_num" title="$bug_stat};
if ($bug_res ne "") {$link_return .= " $bug_res"}
- $link_return .= qq{ - $bug_desc">$link_text</a>};
+ if ($bug_grp == 0) { $link_return .= " - $bug_desc" }
+ $link_return .= qq{">$link_text</a>};
if ($bug_res ne "") { $link_return .= "</strike>" }
if ($bug_stat eq "UNCONFIRMED") { $link_return .= "</i>"}