]> git.koha-community.org Git - koha.git/commit
Bug 13584 - Able to view menu for Purchase Suggestions even when user does not have...
authorThomas <tomsStudy@gmail.com>
Wed, 14 Jan 2015 23:26:36 +0000 (23:26 +0000)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Wed, 21 Jan 2015 13:55:39 +0000 (10:55 -0300)
commit4c68cebdef064a59cdd690f7492884c6d48dd765
treee8073c7c5fa4b38c963cfede9f02d9b95fe91470
parentacff2645584043c8f34515e3326973f149dcf913
Bug 13584 - Able to view menu for Purchase Suggestions even when user does not have permission

Added check for borrowers that stops the Purchase Suggestions 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
*Purchase suggestions item should not be seen in the menu.

-Change the accounts permissions so they have the 'borrowers' permission
*Purchase suggestions item should be present in the menu.

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
The page requires borrowers permission, so the link should act accordingly.

Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Same problem for Fines, Circulation history, Notices and Statistics
tabs.
circ-menu.tt is only used from the Fines tab (which is not accessible),
to it's not useful to add this check to it. But for the consistency, it
makes sense. follow-up coming.

Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc