Просмотр исходного кода

made allow_reply_thread check overridable by views

Rafał Pitoń 10 лет назад
Родитель
Сommit
a657a4a8f5
1 измененных файлов с 3 добавлено и 0 удалено
  1. 3 0
      misago/threads/views/generic/thread/view.py

+ 3 - 0
misago/threads/views/generic/thread/view.py

@@ -59,6 +59,9 @@ class ThreadView(ViewBase):
             'poster__online_tracker'
         ).order_by('id')
 
+    def allow_reply_thread(self, user, thread):
+        allow_reply_thread(user, thread)
+
     def dispatch(self, request, *args, **kwargs):
         relations = ['forum', 'starter', 'last_poster', 'first_post']
         thread = self.fetch_thread(request, select_related=relations, **kwargs)