Show More
@@ -36,6 +36,9 b' class PostManager(models.Manager):' | |||||
36 | Creates new post |
|
36 | Creates new post | |
37 | """ |
|
37 | """ | |
38 |
|
38 | |||
|
39 | if thread is not None and thread.is_archived(): | |||
|
40 | raise Exception('Cannot post into an archived thread') | |||
|
41 | ||||
39 | if not utils.is_anonymous_mode(): |
|
42 | if not utils.is_anonymous_mode(): | |
40 | is_banned = Ban.objects.filter(ip=ip).exists() |
|
43 | is_banned = Ban.objects.filter(ip=ip).exists() | |
41 | else: |
|
44 | else: |
General Comments 0
You need to be logged in to leave comments.
Login now