@staticmethod<EOL><INDENT>def redirect_if_blocked(course_run_ids, user=None, ip_address=None, url=None):<DEDENT>
for course_run_id in course_run_ids:<EOL><INDENT>redirect_url = embargo_api.redirect_if_blocked(<EOL>CourseKey.from_string(course_run_id),<EOL>user=user,<EOL>ip_address=ip_address,<EOL>url=url<EOL>)<EOL>if redirect_url:<EOL><INDENT>return redirect_url<EOL><DEDENT><DEDENT>
Return redirect to embargo error page if the given user is blocked.