diff --git a/UPGRADING.md b/UPGRADING.md index b67cc34f2e1..bfd79695a56 100644 --- a/UPGRADING.md +++ b/UPGRADING.md @@ -41,6 +41,9 @@ The format of this change log follows the advice given at [Keep a CHANGELOG](htt This change has also adds a 'requiredcapabilties' parameter to the function, which accepts an list of abbreviated capabilities for checking access against question banks before they are returned. For more information see [MDL-85069](https://tracker.moodle.org/browse/MDL-85069) +- `question_edit_contexts` now only considers the provided context when checking permissions, rather than all parent contexts as well. As questions now exist only at the activity module context level, permissions can be inherited or overridden as normal for each question bank. The previous pattern of checking for a permission in any parent context circumvented the override system, and no longer makes sense. + + For more information see [MDL-85754](https://tracker.moodle.org/browse/MDL-85754) ## 5.0.1 diff --git a/question/UPGRADING.md b/question/UPGRADING.md index c766addcfb5..c8e9c95afb5 100644 --- a/question/UPGRADING.md +++ b/question/UPGRADING.md @@ -17,6 +17,9 @@ This change has also adds a 'requiredcapabilties' parameter to the function, which accepts an list of abbreviated capabilities for checking access against question banks before they are returned. For more information see [MDL-85069](https://tracker.moodle.org/browse/MDL-85069) +- `question_edit_contexts` now only considers the provided context when checking permissions, rather than all parent contexts as well. As questions now exist only at the activity module context level, permissions can be inherited or overridden as normal for each question bank. The previous pattern of checking for a permission in any parent context circumvented the override system, and no longer makes sense. + + For more information see [MDL-85754](https://tracker.moodle.org/browse/MDL-85754) ## 5.0.1