示例#1
0
 def action(self, topic):
     if not perms.may_close_topic(self.request.user, topic):
         raise PermissionDenied
     topic.closed = True
     topic.save()
示例#2
0
文件: views.py 项目: pbiogy/pybbm
 def action(self, topic):
     if not perms.may_close_topic(self.request.user, topic):
         raise PermissionDenied
     topic.closed = True
     topic.save()