arnecoomans / camping.cmns.nl

VKNT, a Vacation Management System, is a place to store your possible holiday locations. It is the ideal place to start making plans, sharing and noting down tips.
1 stars 1 forks source link

Comments can be placed public, but unauthenticated cannot view comments #223

Closed arnecoomans closed 2 months ago

arnecoomans commented 2 months ago

[x] Create setting in settings.py: "Allow unauthenticated users to read comments" [x] Add setting in context processor [x] Use setting to display "public" in add comment form [x] Use setting to load comments

Result; when "Allow unauthenticated users to read comments" is True, comments can be added with visibility public, and unauthenticated users can read these comments. When "Allow unauthenticated users to read comments" is False, the visibility public is not shown, and comments will not appear, a sign-up or login text is shown in stead.

arnecoomans commented 2 months ago

when this is implemented is has 2 faults: