Convert all tabs to the new plugin framework.
This commit is contained in:
@@ -11,7 +11,7 @@ def notes_enabled_for_course(course):
|
||||
2) present in the course tab configuration.
|
||||
'''
|
||||
|
||||
tab_found = next((True for t in course.tabs if t['type'] == 'notes'), False)
|
||||
tab_found = "notes" in course.advanced_modules
|
||||
feature_enabled = settings.FEATURES.get('ENABLE_STUDENT_NOTES')
|
||||
|
||||
return feature_enabled and tab_found
|
||||
|
||||
Reference in New Issue
Block a user