def put(self, working_file_id): working_file = files_service.get_working_file(working_file_id) task = tasks_service.get_task(working_file["task_id"]) user_service.check_project_access(task["project_id"]) working_file = files_service.update_working_file( working_file_id, {"updated_at": datetime.datetime.utcnow()}) return working_file
def put(self, working_file_id): working_file = files_service.get_working_file(working_file_id) task = tasks_service.get_task(working_file["task_id"]) if not permissions.has_manager_permissions(): user_service.check_has_task_related(task["project_id"]) working_file = files_service.update_working_file( working_file_id, {"updated_at": datetime.datetime.utcnow()} ) return working_file
def update_comment(self, working_file_id, comment): working_file = files_service.update_working_file( working_file_id, {"comment": comment} ) return working_file