Commits

Anonymous committed 66cc122

first principal commit

  • Participants
  • Parent commits f60b1f8
  • Branches principal

Comments (0)

Files changed (1)

newsmeme/models.py

                 needs = [UserNeed(user_id) for user_id in \
                             self.obj.author.friends]
 
-                permission = permission & Permission(*needs)
+                permission &= Permission(*needs)
 
             return permission
       
-      
         @cached_property
         def vote(self):
             permission = auth & Denial(UserNeed(self.obj.author_id))
             needs = [UserNeed(user_id) for user_id in self.obj.votes]
-            permission = permission & Denial(*needs)
+            return permission & Denial(*needs)
             
-            return permission
-
         @cached_property
         def comment(self):
             return self.view