Closed JaqiKal closed 6 months ago
Solution is
request.user.is_authenticated
in BookDetailView
, BookUpdateView
, and BookDeleteView
to raise Http404
if unauthorized access is attempted.get_queryset
methods to return user-specific book lists.
Problem: Users who are not the creators of a book can access and edit any book by directly navigating to its edit URL, bypassing permission checks.
Encountered: During early testing (ET)
Can it be Reproduced: Yes it is reproducable.
Impact: Well....let's say that this is bad, very bad.
Possible Solution: Implement permission checks to ensure that only the creator (or an admin) can edit or view the book edit page.