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)
committerTomas Cohen Arazi <tomascohen@theke.io>
Mon, 3 Jul 2023 17:51:34 +0000 (14:51 -0300)
commit72524c3fbf3caf67c29c6f1f14afaacf04abd232
tree9c621c6993e7c37a70bf92359eceb9e65d0c5d66
parentf88d2e7983a8962e6c7de424dee7cc20200f2c74
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>
koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt