From 639b727c92670ba35c0159358f6a531e8375b344 Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Sun, 17 Jul 2022 16:21:43 -0700 Subject: [PATCH] Fixes perms check for ratings --- bookwyrm/models/status.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bookwyrm/models/status.py b/bookwyrm/models/status.py index 3949e09a9..fce69cae2 100644 --- a/bookwyrm/models/status.py +++ b/bookwyrm/models/status.py @@ -218,7 +218,8 @@ class Status(OrderedCollectionPageMixin, BookWyrmModel): """certain types of status aren't editable""" # first, the standard raise super().raise_not_editable(viewer) - if isinstance(self, (GeneratedNote, ReviewRating)): + # if it's an edit (not a create) you can only edit content statuses + if self.id and isinstance(self, (GeneratedNote, ReviewRating)): raise PermissionDenied() @classmethod