Exemplo n.º 1
0
 def check_can_post(self, project_id, task_id):
     if not can_post(project_id, task_id, get_user_id_or_ip()):
         raise Forbidden("You must request a task first!")
Exemplo n.º 2
0
 def check_can_post(self, project_id, task_id, user_ip_or_id):
     if not can_post(project_id, task_id, user_ip_or_id):
         raise Forbidden("You must request a task first!")