From: terry%mozilla.org <>
Date: Thu, 17 Feb 2000 23:52:12 +0000 (+0000)
Subject: Put the "users" link in the trailer for people who are able to tweak
X-Git-Tag: bugzilla-2.12~380
X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c11194d54e2db8681b84c385dccf5398c548d156;p=thirdparty%2Fbugzilla.git
Put the "users" link in the trailer for people who are able to tweak
the permissions of other users.
---
diff --git a/CGI.pl b/CGI.pl
index af597f8bc9..41099661bd 100644
--- a/CGI.pl
+++ b/CGI.pl
@@ -905,9 +905,9 @@ sub GetCommandMenu {
if ($::anyvotesallowed) {
$html .= qq{ | My votes};
}
- 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 . " | My bugs";
@@ -923,7 +923,7 @@ sub GetCommandMenu {
$html .= ", parameters";
$html .= ", sanity check";
}
- if (UserInGroup("editusers") || UserInGroup("editgroupmembers")) {
+ if (UserInGroup("editusers") || $blessgroupset) {
$html .= ", users";
}
if (UserInGroup("editcomponents")) {