Skip to content

Commit

Permalink
New setting to control the pages feature
Browse files Browse the repository at this point in the history
  • Loading branch information
marcospri committed Sep 26, 2023
1 parent ec5e9cd commit b14dbc8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions lms/models/application_instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ class ApplicationSettings(JSONSettings):
JSONSetting("canvas", "files_enabled", asbool),
JSONSetting("canvas", "folders_enabled", asbool),
JSONSetting("canvas", "strict_section_membership", asbool),
JSONSetting("canvas", "pages_enabled", asbool),
JSONSetting("desire2learn", "client_id"),
JSONSetting("desire2learn", "client_secret", JSONSetting.AES_SECRET),
JSONSetting("desire2learn", "groups_enabled", asbool),
Expand Down
1 change: 1 addition & 0 deletions lms/templates/admin/application_instance/show.html.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@
{{ settings_checkbox("Folders enabled", "canvas", "folders_enabled", default=False) }}
{{ settings_checkbox("Groups enabled", "canvas", "groups_enabled") }}
{{ settings_checkbox("Sections enabled", "canvas", "sections_enabled") }}
{{ settings_checkbox("Pages enabled", "canvas", "pages_enabled", default=False) }}
{{ settings_checkbox("Sections strict membership", "canvas", "strict_section_membership", default=False) }}
</fieldset>

Expand Down

0 comments on commit b14dbc8

Please sign in to comment.