Commit 6adf93c1 authored by gerv%gerv.net's avatar gerv%gerv.net

Bug 145849 - Non-maintainers with ability to bless others need "users" link in…

Bug 145849 - Non-maintainers with ability to bless others need "users" link in footer. Patch by bugreport@peshkin.net; r=gerv, justdave.
parent 9aff1000
...@@ -499,10 +499,10 @@ sub GetUserInfo { ...@@ -499,10 +499,10 @@ sub GetUserInfo {
$user{'login'} = $::COOKIE{"Bugzilla_login"}; $user{'login'} = $::COOKIE{"Bugzilla_login"};
$user{'userid'} = $userid; $user{'userid'} = $userid;
SendSQL("SELECT mybugslink, realname, groupset FROM profiles " . SendSQL("SELECT mybugslink, realname, groupset, blessgroupset " .
"WHERE userid = $userid"); "FROM profiles WHERE userid = $userid");
($user{'showmybugslink'}, $user{'realname'}, $user{'groupset'}) = ($user{'showmybugslink'}, $user{'realname'}, $user{'groupset'},
FetchSQLData(); $user{'blessgroupset'}) = FetchSQLData();
SendSQL("SELECT name, query, linkinfooter FROM namedqueries " . SendSQL("SELECT name, query, linkinfooter FROM namedqueries " .
"WHERE userid = $userid"); "WHERE userid = $userid");
...@@ -857,7 +857,10 @@ Content-type: text/html ...@@ -857,7 +857,10 @@ Content-type: text/html
print qq| print qq|
<hr> <hr>
<p>If you don't have a Bugzilla account, you can <p>If you don't have a Bugzilla account, you can
<a href="createaccount.cgi">create a new account</a>.</p> <a href="createaccount.cgi">create a new account</a>.
<a href="display.cgi?page=why-account">
I just want to report a bug.
Why is this necessary?</a></p>
<form method="get" action="token.cgi"> <form method="get" action="token.cgi">
<input type="hidden" name="a" value="reqpw"> <input type="hidden" name="a" value="reqpw">
If you have an account, but have forgotten your password, If you have an account, but have forgotten your password,
......
...@@ -65,7 +65,8 @@ ...@@ -65,7 +65,8 @@
Edit <a href="userprefs.cgi">prefs</a> Edit <a href="userprefs.cgi">prefs</a>
[% ", <a href='editparams.cgi'>parameters</a>" [% ", <a href='editparams.cgi'>parameters</a>"
IF user.groups.tweakparams %] IF user.groups.tweakparams %]
[% ", <a href='editusers.cgi'>users</a>" IF user.groups.editusers %] [% ", <a href='editusers.cgi'>users</a>" IF user.groups.editusers
|| (user.blessgroupset > 0) %]
[% ", <a href='editproducts.cgi'>products</a>" [% ", <a href='editproducts.cgi'>products</a>"
IF user.groups.editcomponents %] IF user.groups.editcomponents %]
[% ", <a href='editattachstatuses.cgi'> attachment&nbsp;statuses</a>" [% ", <a href='editattachstatuses.cgi'> attachment&nbsp;statuses</a>"
......
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