From 81d5f9dcdae68037a43c7953be1e91a2fcf92b04 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 --- 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 efad86e27c..83c01b5980 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/circ-toolbar.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/circ-toolbar.inc @@ -100,7 +100,7 @@ function export_barcodes() { [% 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"); @@ -126,7 +126,7 @@ function export_barcodes() { [% END %] [% IF ( CAN_user_borrowers ) %] [% IF ( adultborrower AND activeBorrowerRelationship ) %]
  • Add child
  • [% END %] - [% IF ( CAN_user_staffaccess ) %]
  • Change Password
  • [% END %] + [% IF ( CAN_user_borrowers ) %]
  • Change Password
  • [% END %] [% END %]
  • Duplicate
  • Print Page
  • -- 2.39.5