Silence deprecation warnings
https://docs.djangoproject.com/en/1.11/releases/1.10/#using-user-is-authenticated-and-user-is-anonymous-as-methods
This commit is contained in:
@@ -30,7 +30,7 @@ class EdxNotesTab(EnrolledTab):
|
||||
if not settings.FEATURES.get("ENABLE_EDXNOTES") or is_harvard_notes_enabled(course):
|
||||
return False
|
||||
|
||||
if user and not user.is_authenticated():
|
||||
if user and not user.is_authenticated:
|
||||
return False
|
||||
|
||||
return course.edxnotes
|
||||
|
||||
Reference in New Issue
Block a user