modified the html static book to only enable annotator.js when notes are enabled for the course
This commit is contained in:
5
lms/djangoapps/notes/utils.py
Normal file
5
lms/djangoapps/notes/utils.py
Normal file
@@ -0,0 +1,5 @@
|
||||
# TODO: make a separate policy setting to enable/disable notes.
|
||||
def notes_enabled_for_course(course):
|
||||
''' Returns True if notes are enabled for the course, False otherwise. '''
|
||||
notes_tab_type = 'notes'
|
||||
return next((True for tab in course.tabs if tab['type'] == notes_tab_type), False)
|
||||
Reference in New Issue
Block a user