Browse Source

Don't burp on making threads sticky

Ralfp 12 years ago
parent
commit
98b20be573
1 changed files with 1 additions and 0 deletions
  1. 1 0
      misago/threads/views/list.py

+ 1 - 0
misago/threads/views/list.py

@@ -178,6 +178,7 @@ class ThreadsView(BaseView):
             self.request.messages.set_flash(Message(_('Selected threads have been turned into annoucements.')), 'success', 'threads')
 
     def action_sticky(self, ids):
+        acl = self.request.acl.threads.get_role(self.forum)
         sticky = []
         for thread in self.threads:
             if thread.pk in ids and thread.weight != 1 and (acl['can_pin_threads'] == 2 or thread.weight < 2):