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 <oleonard@myacpl.org>
Signed-off-by: Christopher <cbrannon@cdalibrary.org>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit ca1af51349)
Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
This commit is contained in:
parent
26242dbe8b
commit
67d20ed350
|
|
@ -889,7 +889,9 @@
|
|||
<th>Date</th>
|
||||
<th>Status</th>
|
||||
<th>Comment</th>
|
||||
<th class="no-sort">Actions</th>
|
||||
[% IF ( CAN_user_tools_moderate_comments ) %]
|
||||
<th class="no-sort">Actions</th>
|
||||
[% END %]
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
|
|
|||
Loading…
Reference in New Issue