Check permissions when creating a status
This commit is contained in:
parent
a2540e8361
commit
7fdfd0c9c7
2 changed files with 17 additions and 0 deletions
|
@ -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"):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue