Owen Leonard
761b410f99
This patch modifies the acquisitions sidebar menu so that it checks properly for the currencies_manage permission. This patch also removes the menu link directly to the administration home page. Since we're removing the check on the general "CAN_user_parameters" permission it doesn't make sense to assume the page is accessible. To test, apply the patch and modifiy a staff user so that they have no "parameters" permissions but do have "currencies_manage" permission. Go to the Acquisitions home page. There should be a link to currencies management in the sidebar menu. Perform the same test with a user who has "parameters" permissions but not "currencies_manage" permission. There should be no link to currencies in the acquisitions sidebar menu. The user should have access to the administrative home page. Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
32 lines
1.8 KiB
HTML
32 lines
1.8 KiB
HTML
<div id="navmenu">
|
|
<div id="navmenulist">
|
|
<h5>Acquisitions</h5>
|
|
<ul>
|
|
<li><a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions home</a></li>
|
|
[% IF ( CAN_user_acquisition_order_receive ) %]<li><a href="/cgi-bin/koha/acqui/lateorders.pl">Late orders</a></li>[% END %]
|
|
[% IF ( suggestion && CAN_user_acquisition_suggestions_manage ) %]<li><a href="/cgi-bin/koha/suggestion/suggestion.pl">Suggestions</a></li>[% END %]
|
|
<li><a href="/cgi-bin/koha/acqui/invoices.pl">Invoices</a></li>
|
|
[% IF CAN_user_acquisition_edi_manage %]
|
|
<li><a href="/cgi-bin/koha/acqui/edifactmsgs.pl">EDIFACT messages</a></li>
|
|
[% END %]
|
|
</ul>
|
|
[% IF ( CAN_user_acquisition_period_manage || CAN_user_acquisition_budget_manage || CAN_user_acquisition_currencies_manage || CAN_user_acquisition_edi_manage ) %]
|
|
<h5>Administration</h5>
|
|
<ul>
|
|
[% IF ( CAN_user_acquisition_period_manage ) %]
|
|
<li><a href="/cgi-bin/koha/admin/aqbudgetperiods.pl">Budgets</a></li>
|
|
[% END %]
|
|
[% IF ( CAN_user_acquisition_budget_manage ) %]
|
|
<li><a href="/cgi-bin/koha/admin/aqbudgets.pl">Funds</a></li>
|
|
[% END %]
|
|
[% IF ( CAN_user_acquisition_currencies_manage ) %]
|
|
<li><a href="/cgi-bin/koha/admin/currency.pl">Currencies</a></li>
|
|
[% END %]
|
|
[% IF CAN_user_acquisition_edi_manage %]
|
|
<li><a href="/cgi-bin/koha/admin/edi_accounts.pl">EDI accounts</a></li>
|
|
<li><a href="/cgi-bin/koha/admin/edi_ean_accounts.pl">Library EANs</a></li>
|
|
[% END %]
|
|
</ul>
|
|
[% END %]
|
|
</div>
|
|
</div>
|