Bug 7888 - Permission for "change password" button in circ toolbar should be "borrowe...
authorLiz Rea <wizzyrea@gmail.com>
Tue, 3 Apr 2012 15:35:28 +0000 (10:35 -0500)
committerPaul Poulain <paul.poulain@biblibre.com>
Wed, 4 Apr 2012 08:55:48 +0000 (10:55 +0200)
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 <oleonard@myacpl.org>
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
koha-tmpl/intranet-tmpl/prog/en/includes/circ-toolbar.inc

index efad86e..83c01b5 100644 (file)
@@ -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 ) %]<li><a id="addchild" href="/cgi-bin/koha/members/memberentry.pl?op=add&amp;guarantorid=[% borrowernumber %]&amp;category_type=C">Add child</a></li>[% END %]
-        [% IF ( CAN_user_staffaccess ) %] <li><a id="changepassword" href="/cgi-bin/koha/members/member-password.pl?member=[% borrowernumber %]">Change Password</a></li>[% END %]
+        [% IF ( CAN_user_borrowers ) %] <li><a id="changepassword" href="/cgi-bin/koha/members/member-password.pl?member=[% borrowernumber %]">Change Password</a></li>[% END %]
     [% END %]
     <li><a id="duplicate" href="/cgi-bin/koha/members/memberentry.pl?op=duplicate&amp;borrowernumber=[% borrowernumber %]&amp;category_type=[% category_type %]">Duplicate</a></li>
        <li id="printmenuc"><a id="printpage" href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]&amp;print=page">Print Page</a></li>