예제 #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!")
예제 #2
0
파일: task_run.py 프로젝트: PyBossa/pybossa
 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!")