]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/models/user.py
Show wiki css fixes.
[osqa.git] / forum / models / user.py
index cddfe35c3388fb9134ec65330b697583a4c60263..a3714ae9c4212135b9bc871be6ebd7b2a7441f48 100644 (file)
@@ -217,7 +217,7 @@ class User(BaseModel, DjangoUser):
     @true_if_is_super_or_staff\r
     def can_edit_post(self, post):\r
         return self == post.author or self.reputation >= int(settings.REP_TO_EDIT_OTHERS\r
-        ) or (post.wiki and self.reputation >= int(settings.REP_TO_EDIT_WIKI))\r
+        ) or (post.nis.wiki and self.reputation >= int(settings.REP_TO_EDIT_WIKI))\r
 \r
     @true_if_is_super_or_staff\r
     def can_wikify(self, post):\r