From cb75b239215714416c43282b573ae653e55e29a8 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Mon, 21 Oct 2013 14:54:41 -0700 Subject: [PATCH] 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 Signed-off-by: Jonathan Druart Signed-off-by: Galen Charlton --- koha-tmpl/intranet-tmpl/prog/en/includes/members-toolbar.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/members-toolbar.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/members-toolbar.inc index 787b852161..258ccc6360 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/members-toolbar.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/members-toolbar.inc @@ -115,9 +115,9 @@ function searchToHold(){ [% IF ( CAN_user_borrowers ) %] Change password [% END %] + Duplicate [% END %] - Duplicate