Browse Source

Correctly build list of readable forums.

Ralfp 12 years ago
parent
commit
4504fdf11a
1 changed files with 3 additions and 3 deletions
  1. 3 3
      misago/models/forummodel.py

+ 3 - 3
misago/models/forummodel.py

@@ -117,9 +117,9 @@ class ForumManager(TreeManager):
         readable = []
         for pk, forum in self.forums_tree.items():
             if ((include_special or not forum.special) and 
-                    acl.forums.can_browse(pk) and
-                    acl.threads.acl[pk]['can_read_threads']):
-                readable.append(pk)
+                    acl.forums.can_browse(forum.pk) and
+                    acl.threads.acl[forum.pk]['can_read_threads']):
+                readable.append(forum.pk)
         return readable