[AMOS commit] MDL-19125 module restrictions: use a capability Committed into Git: 2012-03-07 11:33 UTC

[AMOS commit] MDL-19125 module restrictions: use a capability Committed into Git: 2012-03-07 11:33 UTC

by AMOS bot -
Number of replies: 0
Author: Tim Hunt
MDL-19125 module restrictions: use a capability
1. This used to use a complex legacy system which was buggy.

2. It now relies on a new mod/...:addinstance capability for each module.

3. All the legacy code has been stripped out.

4. Old restriction data is upgraded by creating the necessary permission
overrides. Similarly, when old backups are restored, the old settings
are converted to be overrides.

5. The required addinstance capabilities will be added as a separate
commit.

6. There is a developer debug warning about modules that are missing the
addinstance capability, unless they are MOD_ARCHETYPE_SYSTEM mods.


http://git.moodle.org/gw?p=moodle.git;a=commit;h=9665ecd27555e919555100f159f1879d52e31793
http://github.com/moodle/moodle/commit/9665ecd27555e919555100f159f1879d52e31793

- 2.3 en [configdefaultallowedmodules,core_admin]
- 2.3 en [configrestrictbydefault,core_admin]
- 2.3 en [configrestrictmodulesfor,core_admin]
- 2.3 en [defaultallowedmodules,core_admin]
- 2.3 en [restrictbydefault,core_admin]
- 2.3 en [restrictmodulesfor,core_admin]
- 2.3 en [restrictmodules,core]