From 25f929e008bbd996bad6aad49643b03d2cffb554 Mon Sep 17 00:00:00 2001
From: "gerv%gerv.net" <>
Date: Sat, 25 May 2002 17:34:58 +0000
Subject: [PATCH] Bug 145849 - Non-maintainers with ability to bless others
need "users" link in footer. Patch by bugreport@peshkin.net; r=gerv,
justdave.
---
CGI.pl | 8 ++++----
template/en/default/global/useful-links.html.tmpl | 3 ++-
2 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/CGI.pl b/CGI.pl
index 01afc62dd6..5a796d1829 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");
diff --git a/template/en/default/global/useful-links.html.tmpl b/template/en/default/global/useful-links.html.tmpl
index 5db6333edb..6b548b4dc0 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"
--
2.47.3