]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Put the "users" link in the trailer for people who are able to tweak
authorterry%mozilla.org <>
Thu, 17 Feb 2000 23:52:12 +0000 (23:52 +0000)
committerterry%mozilla.org <>
Thu, 17 Feb 2000 23:52:12 +0000 (23:52 +0000)
the permissions of other users.

CGI.pl

diff --git a/CGI.pl b/CGI.pl
index af597f8bc9768bd2c0387f648cbc99a858efb31c..41099661bd2e572c83d0bc8793deb10160756552 100644 (file)
--- 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")) {