summaryrefslogtreecommitdiffstats
path: root/CGI.pl
diff options
context:
space:
mode:
authorterry%mozilla.org <>2000-02-18 00:52:12 +0100
committerterry%mozilla.org <>2000-02-18 00:52:12 +0100
commitc11194d54e2db8681b84c385dccf5398c548d156 (patch)
treeea1b064e62ee23ecd74bb86fbd90d77d2a7f022e /CGI.pl
parent2cfed124521e14e14cda1f8f544874f197f1af38 (diff)
downloadbugzilla-c11194d54e2db8681b84c385dccf5398c548d156.tar.gz
bugzilla-c11194d54e2db8681b84c385dccf5398c548d156.tar.xz
Put the "users" link in the trailer for people who are able to tweak
the permissions of other users.
Diffstat (limited to 'CGI.pl')
-rw-r--r--CGI.pl8
1 files changed, 4 insertions, 4 deletions
diff --git a/CGI.pl b/CGI.pl
index af597f8bc..41099661b 100644
--- a/CGI.pl
+++ b/CGI.pl
@@ -905,9 +905,9 @@ sub GetCommandMenu {
if ($::anyvotesallowed) {
$html .= qq{ | <A HREF="showvotes.cgi"><NOBR>My votes</NOBR></A>};
}
- SendSQL("SELECT mybugslink, userid FROM profiles WHERE login_name = " .
- SqlQuote($::COOKIE{'Bugzilla_login'}));
- my ($mybugslink, $userid) = (FetchSQLData());
+ SendSQL("SELECT mybugslink, userid, blessgroupset FROM profiles " .
+ "WHERE login_name = " . SqlQuote($::COOKIE{'Bugzilla_login'}));
+ my ($mybugslink, $userid, $blessgroupset) = (FetchSQLData());
if ($mybugslink) {
my $mybugsurl = PerformSubsts($mybugstemplate, \%substs);
$html = $html . " | <A HREF='$mybugsurl'><NOBR>My bugs</NOBR></A>";
@@ -923,7 +923,7 @@ sub GetCommandMenu {
$html .= ", <a href=editparams.cgi>parameters</a>";
$html .= ", <a href=sanitycheck.cgi><NOBR>sanity check</NOBR></a>";
}
- if (UserInGroup("editusers") || UserInGroup("editgroupmembers")) {
+ if (UserInGroup("editusers") || $blessgroupset) {
$html .= ", <a href=editusers.cgi>users</a>";
}
if (UserInGroup("editcomponents")) {