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)
committerLucas Gass <lucas@bywatersolutions.com>
Tue, 5 Mar 2019 22:41:44 +0000 (22:41 +0000)
commit013b589f23e34bdb08dd162ab1ed0f0477c66994
treec910afe03cd54b6d066afb5507071ad3a4c9b283
parentb973f5b96195d2fbadeafeef27438de85a3f3126
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>
(cherry picked from commit 1fe43199b642fa575fd93131e1390c55d4631e52)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
(cherry picked from commit dc2bca10630211abe4118917a4c7d185a9b6b2cf)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
koha-tmpl/intranet-tmpl/prog/en/includes/tools-menu.inc
koha-tmpl/intranet-tmpl/prog/en/modules/tools/tools-home.tt