Describe the bug
As a user who is not allowed to upload images/audio/files/video, I get errors when trying to:
post a comment
see existing comments on a work
post a new work of my own
To Reproduce
Create a user on an Ourchive instance where the setting Auto-Allow Upload is False
The user will not be allowed to upload images, audio, export files, or video
Go to a work posted by another user that has comments on it
At the bottom of the page, click to show/hide the comments (where it says "3 comment(s)" or similar). The blank space underneath will expand, but no comments will be displayed.
Fill out the comment box and click "Post Comment"
An error message will appear and the comment will not be created
Describe the bug As a user who is not allowed to upload images/audio/files/video, I get errors when trying to:
To Reproduce
Expected behavior Users without upload privileges should be able to read comments, leave comments, and create new works.
Screenshots Non-displayed comments:![Screenshot 2024-04-19 at 23-14-36 Work - Test Fic](https://github.com/c-e-p/ourchive/assets/903490/056cd4fb-e759-41b9-a1f9-5c1f554d49c6)
Error when trying to leave comment:![Screenshot from 2024-04-19 23-15-22](https://github.com/c-e-p/ourchive/assets/903490/da3d2c1d-cc08-4e55-9812-6f57771c63bf)
Error when trying to create work:![Screenshot from 2024-04-19 23-27-35](https://github.com/c-e-p/ourchive/assets/903490/cc8ff9eb-86cc-4950-a192-be5c25b6bf1a)
Desktop (please complete the following information):
Hosting Digital Ocean droplet running Ubuntu 22.04.c
Additional context Full log, when a user without upload privileges tries to view comments on a work and post their own comment: