Bug 13582 - Able to view menu for Circulation History even when user does not have permission
Added check for borrowers that stops the Circulation History link being shown. This could be done through the css but that function currently appears to be broken. Testing Plan: -Search for a patron with an account that does not have the 'borrowers' permission *Circulation history should not be seen in the menu. -Change the accounts permissions so they have the 'borrowers' permission *Circulation history should be present in the menu. Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de> Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com> Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
This commit is contained in:
parent
82c78355c7
commit
c8f3f9f574
1 changed files with 2 additions and 1 deletions
|
@ -70,7 +70,8 @@
|
|||
[% IF ( finesview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/pay.pl?borrowernumber=[% borrowernumber %]">Fines</a></li>
|
||||
[% END %]
|
||||
[% IF ( RoutingSerials ) %][% IF ( routinglistview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/routing-lists.pl?borrowernumber=[% borrowernumber %]">Routing lists</a></li>[% END %]
|
||||
[% IF ( intranetreadinghistory ) %]
|
||||
<!-- Added check for borrowers permission as this is needed to access Cirulation History -->
|
||||
[% IF ( intranetreadinghistory && CAN_user_borrowers ) %]
|
||||
[% IF ( readingrecordview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/readingrec.pl?borrowernumber=[% borrowernumber %]">Circulation history</a></li>
|
||||
[% END %]
|
||||
[% IF ( CAN_user_parameters ) %]
|
||||
|
|
Loading…
Reference in a new issue