Esempio n. 1
0
 def action(self, topic):
     if not perms.may_open_topic(self.request.user, topic):
         raise PermissionDenied
     topic.closed = False
     topic.save()
Esempio n. 2
0
 def action(self, topic):
     if not perms.may_open_topic(self.request.user, topic):
         raise PermissionDenied
     topic.closed = False
     topic.save()