Beispiel #1
0
 def action(self, topic):
     if not perms.may_unstick_topic(self.request.user, topic):
         raise PermissionDenied
     topic.sticky = False
     topic.save()
Beispiel #2
0
 def action(self, topic):
     if not perms.may_unstick_topic(self.request.user, topic):
         raise PermissionDenied
     topic.sticky = False
     topic.save()