From 6adf93c17df9c766aa1f96be48bc0e8fefef1633 Mon Sep 17 00:00:00 2001 From: "gerv%gerv.net" <> Date: Sat, 25 May 2002 17:35:51 +0000 Subject: Bug 145849 - Non-maintainers with ability to bless others need "users" link in footer. Patch by bugreport@peshkin.net; r=gerv, justdave. --- CGI.pl | 13 ++++++++----- template/en/default/global/useful-links.html.tmpl | 3 ++- 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|

If you don't have a Bugzilla account, you can - create a new account.

+ create a new account. + + I just want to report a bug. + Why is this necessary?

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 prefs [% ", parameters" IF user.groups.tweakparams %] - [% ", users" IF user.groups.editusers %] + [% ", users" IF user.groups.editusers + || (user.blessgroupset > 0) %] [% ", products" IF user.groups.editcomponents %] [% ", attachment statuses" -- cgit v1.2.3-24-g4f1b