[Koha-bugs] [Bug 11097] Hide duplicate patron button if logged in user lacks CAN_user_borrowers permission

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Oct 22 02:27:43 CEST 2013


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11097

David Cook <dcook at prosentient.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #22198|0                           |1
        is obsolete|                            |

--- Comment #2 from David Cook <dcook at prosentient.com.au> ---
Created attachment 22252
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=22252&action=edit
Bug 11097 - Hide duplicate patron button if logged in user lacks
CAN_user_borrowers permission

The "duplicate" button on the circ/patron toolbar should not appear if
the logged in user lacks permission to edit patron records. This patch
wraps the button in the required logic.

To test, open a patron record in circulation or patrons and view as a
staff client user who both has and doesn't have CAN_user_borrowers
permission. The button should be shown and not shown accordingly.

Signed-off-by: David Cook <dcook at prosentient.com.au>

I was only able to open a patron record in circulation, but it works
as described.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list