When trying to delete a section within the course, a permissions error occurs. The affected version is MOODLE_400_STABLE.

the full stack trace is:
Error code: sectionactionnotsupported
- line 1659 of /course/format/classes/base.php: moodle_exception thrown
- line 840 of /course/format/twocol/lib.php: call to core_courseformat\base->section_action()
- line 3727 of /course/externallib.php: call to format_twocol->section_action()
- line 261 of /lib/externallib.php: call to core_course_external::edit_section()
- line 81 of /lib/ajax/service.php: call to external_api::call_external_function()
When trying to delete a section within the course, a permissions error occurs. The affected version is MOODLE_400_STABLE.
the full stack trace is:
Error code: sectionactionnotsupported