Commit c11194d5 authored by terry%mozilla.org's avatar terry%mozilla.org

Put the "users" link in the trailer for people who are able to tweak

the permissions of other users.
parent 2cfed124
......@@ -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")) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment