Fix PEP8: E125 continuation line
does not distinguish itself from next logical line
This commit is contained in:
@@ -154,7 +154,7 @@ def _has_access_course_desc(user, action, course):
|
||||
# if using registration method to restrict (say shibboleth)
|
||||
if settings.FEATURES.get('RESTRICT_ENROLL_BY_REG_METHOD') and course.enrollment_domain:
|
||||
if user is not None and user.is_authenticated() and \
|
||||
ExternalAuthMap.objects.filter(user=user, external_domain=course.enrollment_domain):
|
||||
ExternalAuthMap.objects.filter(user=user, external_domain=course.enrollment_domain):
|
||||
debug("Allow: external_auth of " + course.enrollment_domain)
|
||||
reg_method_ok = True
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user