mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
01a80f51e5
* New table role_context_levels * Populate table with defaults on install * Populate table on upgrade with the same defaults, plus any additional ones needed to ensure all the role assignments already in the database are allowed. * Change get_assignable_roles to respect these settings. * UI for these settings on the add/edit role form. * Save these settings when a role definition is saved. * If in a context, there are no roles you can assign, display a polite message. * Back up these settings. * Restore these settings. When resotring a <=1.9.x backup file, any newly imported roles are set to be assignable at all contextlevels. Restore not tested because it is broken in HEAD.
README $Id$ ---------- This directory contains my try to create a backup/recover admin option to moodle. I don't know when and how it'll be finished, but I'going to try it, sure. Some day, if this is fully functional, it could be integrated into the main Moodle distribution (ask uncle Martin). :-) Code here may not be tested - so there are no guarantees as to the quality of the code in here, even if part of a stable Moodle release. Please, for any comment about this option, do it in Moodle Developer Forum at: http://moodle.org/mod/forum/view.php?id=55 (searching an "backup" topic) or you can put tour comments in Moodel Bugs at: http://moodle.org/bugs/bug.php?op=show&bugid=84. All comments will be welcome. TIA. To see the general status of the utility, take a look to "STATUS.txt" in this directory. And this is all, I start with it NOW. Eloy (stronk7) 29-04-2003