From 82e9b88d267f2c90d962e77f2e2d0df64260c30d Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Wed, 14 May 2025 10:45:09 -0400 Subject: [PATCH] Bug 39903: Catalog details page emits error if librarian cannot moderate comments on the record If a librarian cannot moderate comments and a bib has comments, the error "Something went wrong when loading the table." will pop up during the page load. Test Plan: 1) Add a comment to a record 2) Log in to the staff interface with a librarian that cannot moderate comments 3) Browse to the "Normal" view for that record 4) Note the error message 5) Apply this patch 6) Reload the page 7) No error! --- koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt index dd588e48741..92f1925831a 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt @@ -889,7 +889,9 @@ Date Status Comment - Actions + [% IF ( CAN_user_tools_moderate_comments ) %] + Actions + [% END %] -- 2.39.5 (Apple Git-154)