From 39a04429dc6069ddd000b53c3bb686d15310b0be 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! Signed-off-by: Owen Leonard --- 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