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.
Created attachment 182454 [details] [review] 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!
*** Bug 39702 has been marked as a duplicate of this bug. ***
Created attachment 182456 [details] [review] 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>
Created attachment 182462 [details] [review] 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>
Works as described. Thank you!