]> git.koha-community.org Git - koha.git/commit
Bug 11097 - Hide duplicate patron button if logged in user lacks CAN_user_borrowers...
authorOwen Leonard <oleonard@myacpl.org>
Mon, 21 Oct 2013 21:54:41 +0000 (14:54 -0700)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Thu, 5 Dec 2013 15:04:15 +0000 (12:04 -0300)
commitf6ca88b5ed1ef0074aa4cfb618f88572a300dc29
tree4035919240a1ece0c382a53b1167e2f32f96592c
parent71035aab2db03fc4b60a6d5f8979832eb99a81d6
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: Ed Veal <ed.veal@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
(cherry picked from commit cb75b239215714416c43282b573ae653e55e29a8)
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
koha-tmpl/intranet-tmpl/prog/en/includes/members-toolbar.inc