summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgerv%gerv.net <>2002-05-25 19:35:51 +0200
committergerv%gerv.net <>2002-05-25 19:35:51 +0200
commit6adf93c17df9c766aa1f96be48bc0e8fefef1633 (patch)
treed0cc8da069a89e85d6c608c4da458fb3b4b986df
parent9aff1000b57e713fdf7bd0ad9036f3494c503f67 (diff)
downloadbugzilla-6adf93c17df9c766aa1f96be48bc0e8fefef1633.tar.gz
bugzilla-6adf93c17df9c766aa1f96be48bc0e8fefef1633.tar.xz
Bug 145849 - Non-maintainers with ability to bless others need "users" link in footer. Patch by bugreport@peshkin.net; r=gerv, justdave.
-rw-r--r--CGI.pl13
-rw-r--r--template/en/default/global/useful-links.html.tmpl3
2 files changed, 10 insertions, 6 deletions
diff --git a/CGI.pl b/CGI.pl
index 01afc62dd..153da046a 100644
--- a/CGI.pl
+++ b/CGI.pl
@@ -499,10 +499,10 @@ sub GetUserInfo {
$user{'login'} = $::COOKIE{"Bugzilla_login"};
$user{'userid'} = $userid;
- SendSQL("SELECT mybugslink, realname, groupset FROM profiles " .
- "WHERE userid = $userid");
- ($user{'showmybugslink'}, $user{'realname'}, $user{'groupset'}) =
- FetchSQLData();
+ SendSQL("SELECT mybugslink, realname, groupset, blessgroupset " .
+ "FROM profiles WHERE userid = $userid");
+ ($user{'showmybugslink'}, $user{'realname'}, $user{'groupset'},
+ $user{'blessgroupset'}) = FetchSQLData();
SendSQL("SELECT name, query, linkinfooter FROM namedqueries " .
"WHERE userid = $userid");
@@ -857,7 +857,10 @@ Content-type: text/html
print qq|
<hr>
<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">
<input type="hidden" name="a" value="reqpw">
If you have an account, but have forgotten your password,
diff --git a/template/en/default/global/useful-links.html.tmpl b/template/en/default/global/useful-links.html.tmpl
index 5db6333ed..6b548b4dc 100644
--- a/template/en/default/global/useful-links.html.tmpl
+++ b/template/en/default/global/useful-links.html.tmpl
@@ -65,7 +65,8 @@
Edit <a href="userprefs.cgi">prefs</a>
[% ", <a href='editparams.cgi'>parameters</a>"
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>"
IF user.groups.editcomponents %]
[% ", <a href='editattachstatuses.cgi'> attachment&nbsp;statuses</a>"