1
0
Fork 0

Check permissions when creating a status

This commit is contained in:
Mouse Reeve 2022-07-15 09:26:52 -07:00
parent a2540e8361
commit 7fdfd0c9c7
2 changed files with 17 additions and 0 deletions

View file

@ -85,6 +85,7 @@ class CreateStatus(View):
return redirect("/")
status = form.save(commit=False)
status.raise_not_editable(request.user)
# save the plain, unformatted version of the status for future editing
status.raw_content = status.content
if hasattr(status, "quote"):