Bugzilla – Attachment 22254 Details for
Bug 11097
Hide duplicate patron button if logged in user lacks CAN_user_borrowers permission
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[SIGN-OFF]Bug 11097 - Hide duplicate patron button if logged in user lacks CAN_user_borrowers permission
SIGN-OFFBug-11097---Hide-duplicate-patron-button-i.patch (text/plain), 2.05 KB, created by
Ed Veal
on 2013-10-22 00:34:19 UTC
(
hide
)
Description:
[SIGN-OFF]Bug 11097 - Hide duplicate patron button if logged in user lacks CAN_user_borrowers permission
Filename:
MIME Type:
Creator:
Ed Veal
Created:
2013-10-22 00:34:19 UTC
Size:
2.05 KB
patch
obsolete
>From 70554b96b46083c81de30caa80e56e03bc5fb7d2 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Mon, 21 Oct 2013 14:54:41 -0700 >Subject: [PATCH] [SIGN-OFF]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> >--- > .../prog/en/includes/members-toolbar.inc | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > >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 787b852..258ccc6 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 ) %] > <a id="changepassword" class="btn btn-small" href="/cgi-bin/koha/members/member-password.pl?member=[% borrowernumber %]"><i class="icon-lock"></i> Change password</a> > [% END %] >+ <a id="duplicate" class="btn btn-small" href="/cgi-bin/koha/members/memberentry.pl?op=duplicate&borrowernumber=[% borrowernumber %]&category_type=[% category_type %]"><i class="icon-copy"></i>Duplicate</a> > [% END %] > >- <a id="duplicate" class="btn btn-small" href="/cgi-bin/koha/members/memberentry.pl?op=duplicate&borrowernumber=[% borrowernumber %]&category_type=[% category_type %]"><i class="icon-copy"></i>Duplicate</a> > <div class="btn-group"> > <button class="btn btn-small dropdown-toggle" data-toggle="dropdown"><i class="icon-print"></i> Print <span class="caret"></span></button> > <ul class="dropdown-menu"> >-- >1.7.2.5
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 11097
:
22198
|
22252
|
22254
|
22261