From b5c733a7561a9e8ba90137319407e9eb3acf3594 Mon Sep 17 00:00:00 2001 From: Liz Rea Date: Tue, 3 Apr 2012 10:35:28 -0500 Subject: [PATCH] Bug 7888 - Permission for "change password" button in circ toolbar should be "borrowers" instead of "staffaccess" Patch changes permisison for "change password" button in circ-toolbar.inc from staffaccess to borrowers. To test: - With a staff user with borrowers permission, verify the change password button is shown for a normal patron. - With a staff user without borrowers permission, verify the change password button does not appear. Signed-off-by: Owen Leonard Signed-off-by: Paul Poulain Signed-off-by: Jared Camins-Esakov --- koha-tmpl/intranet-tmpl/prog/en/includes/circ-toolbar.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/circ-toolbar.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/circ-toolbar.inc index 913076f8d5..71f430bc15 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/circ-toolbar.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/circ-toolbar.inc @@ -93,7 +93,7 @@ function update_child() { [% IF ( adultborrower ) %]new YAHOO.widget.Button("addchild");[% END %] new YAHOO.widget.Button("editpatron"); new YAHOO.widget.Button("addnote"); - [% IF CAN_user_staffaccess %] new YAHOO.widget.Button("changepassword"); [% END %] + [% IF CAN_user_borrowers %] new YAHOO.widget.Button("changepassword"); [% END %] new YAHOO.widget.Button("duplicate"); new YAHOO.widget.Button("printslip"); new YAHOO.widget.Button("printpage"); @@ -119,7 +119,7 @@ function update_child() { [% END %] [% IF ( CAN_user_borrowers ) %] [% IF ( adultborrower ) %]
  • Add child
  • [% END %] - [% IF ( CAN_user_staffaccess ) %]
  • Change Password
  • [% END %] + [% IF ( CAN_user_borrowers ) %]
  • Change Password
  • [% END %] [% END %]
  • Duplicate
  • Print Page
  • -- 2.39.5