From: gerv%gerv.net <> Date: Sat, 25 May 2002 17:34:58 +0000 (+0000) Subject: Bug 145849 - Non-maintainers with ability to bless others need "users" link in footer... X-Git-Tag: bugzilla-2.16rc2~32 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=25f929e008bbd996bad6aad49643b03d2cffb554;p=thirdparty%2Fbugzilla.git Bug 145849 - Non-maintainers with ability to bless others need "users" link in footer. Patch by bugreport@peshkin.net; r=gerv, justdave. --- 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"