Bug 9393 [QA Followup] - Don't display link if librarian cannot view the modification
authorKyle M Hall <kyle@bywatersolutions.com>
Tue, 19 Apr 2016 11:55:28 +0000 (11:55 +0000)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 29 Apr 2016 11:53:03 +0000 (11:53 +0000)
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt

index bb24c0b..616a2b2 100644 (file)
@@ -732,7 +732,7 @@ No patron matched <span class="ex">[% message %]</span>
 
                    [% IF ( modifications ) %]
                     <li><span class="circ-hlt">Pending modifications:</span> Patron has pending modifications.
-                            [% IF ( CAN_user_borrowers ) %]
+                            [% IF CAN_user_borrowers && ( !Koha.Preference('IndependentBranchesPatronModifications') || borrower.branch == branch ) %]
                                     <a href="/cgi-bin/koha/members/members-update.pl">View all pending patron modifications</a>
                             [% END %]
                    </li>