Browse Source

Correctly count thread participants.

Ralfp 12 years ago
parent
commit
81eff9c10c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      misago/apps/privatethreads/posting.py

+ 1 - 1
misago/apps/privatethreads/posting.py

@@ -60,7 +60,7 @@ class NewReplyView(NewReplyBaseView, TypeMixin):
 
 
     def set_context(self):
     def set_context(self):
         super(NewReplyView, self).set_context()
         super(NewReplyView, self).set_context()
-        if not (self.request.acl.private_threads.is_mod() or len(self.thread.participants) < 2):
+        if not (self.request.acl.private_threads.is_mod() or self.thread.participants.count() < 2):
             raise ACLError403(_("This thread needs to have more than one participant to allow new replies."))
             raise ACLError403(_("This thread needs to have more than one participant to allow new replies."))
 
 
     def after_form(self, form):
     def after_form(self, form):