MDL-28466 remove the enrol_authorize data

If there are no records, remove the plugin
This commit is contained in:
Dan Poltawski 2013-07-15 13:56:39 +08:00
parent 5710055d41
commit c2ca2d8e91
4 changed files with 37 additions and 1 deletions

View file

@ -2667,6 +2667,7 @@ function update_capabilities($component = 'moodle') {
/**
* Deletes cached capabilities that are no longer needed by the component.
* Also unassigns these capabilities from any roles that have them.
* NOTE: this function is called from lib/db/upgrade.php
*
* @access private
* @param string $component examples: 'moodle', 'mod_forum', 'block_quiz_results'