]> git.koha-community.org Git - koha.git/commit
Bug 15472: Do not display links to circulation.pl if remaining_permissions is not set
authorMarc Véron <veron@veron.ch>
Tue, 5 Jan 2016 14:57:07 +0000 (15:57 +0100)
committerFrédéric Demians <f.demians@tamil.fr>
Thu, 11 Feb 2016 19:15:38 +0000 (20:15 +0100)
commite68c77995306d3c53edfae120336e91d036c1dec
tree618288465ab231072e7aa6f8e41975b3ff6edcd6
parentd3324e3f2505ef355cd4b20ad90acd1fe3f1219b
Bug 15472: Do not display links to circulation.pl if remaining_permissions is not set

If permission 'circulate_remaining_permissions' is not set, links to 'Circulation'
(/circ/circulation-home.pl) on the intranet home page lead to an error
message: "Error: You do not have permission to access this page."

This patch hides the links if the permission is not set.

To test:
- Apply patch
- Log in to the intranet (staff client) with a patron who has the permission
  'circulate_remaining_pernissions' not set
- Verify that no links to Circulation appear on the intranet start page
  (menu top left and menu in main page area)
- Log in as a user who has the permission set.
- Verify that te links appear as appropriate.

Signed-off-by: Hector Castro <hector.hecaxmmx@gmail.com>
Works as advertised

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Brendan A Gallagher <brendan@bywatersolutions.com>
(cherry picked from commit 83936a6b821fe623a6bb7121d128a90107bf703c)
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
(cherry picked from commit daaf3c758c9ba6e642083f4e198b8ad451444c3f)
Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
koha-tmpl/intranet-tmpl/prog/en/includes/header.inc
koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt