Bug 8387: Hide headings in tools when user has no permissions for any listed below
authorKatrin Fischer <katrin.fischer.83@web.de>
Mon, 4 Feb 2019 06:30:51 +0000 (06:30 +0000)
committerNick Clemens <nick@bywatersolutions.com>
Fri, 15 Feb 2019 18:42:48 +0000 (18:42 +0000)
commit1fe43199b642fa575fd93131e1390c55d4631e52
tree171035a0084acc7bd5873b58a3cde6c321955e4d
parentf2746dd8fb1c4557ae56db4769a07fe663576ddc
Bug 8387: Hide headings in tools when user has no permissions for any listed below

The headings for each column on the tools page will show, even if the
user has no permission for any tool below it. This patch tries to
correct this.

To test:
- Try various combinations of tool permissions
- On the tools module start page and for the tools sidebar
  visible on the left on a tool's page:
  - Make sure headings don't show when you have no permissions
    for any of the tools listed below
  - Make sure headings show correctly if you have one or
    many of the tools permissions needed

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
The qa tool gives some warnings but I think they can be considered false
positives.

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
koha-tmpl/intranet-tmpl/prog/en/includes/tools-menu.inc
koha-tmpl/intranet-tmpl/prog/en/modules/tools/tools-home.tt