]> git.koha-community.org Git - koha.git/commit
Bug 33999: Subscription details link on bibliographic detail page should have permiss...
authorOwen Leonard <oleonard@myacpl.org>
Tue, 13 Jun 2023 14:11:33 +0000 (14:11 +0000)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Mon, 17 Jul 2023 14:57:55 +0000 (15:57 +0100)
commit4cc64fc6362122a8bf7222e86c5e6416ee344c81
treee254a51f39522c466f7115e9cba79e8d96180ab3
parent505b4354a9e2cfeea9e9f71bbb9e47fbc4a125dc
Bug 33999: Subscription details link on bibliographic detail page should have permission check

This patch wraps the "Subscription details" link on the bibliographic
detail page with a permissions check, "CAN_user_serials," so that a user
lacking permission to access the Serials module will not be shown the
link.

To test, apply the patch and view the bibliographic detail page of a
serial record.

- When viewing the "Subscriptions" tab as a user with Serials
  permissions you should see the "Subscription details" link.
- When viewing the tab as a user without the correct permissions the
  link should not be present.

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 72524c3fbf3caf67c29c6f1f14afaacf04abd232)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt