tjhunt [Thu, 6 Nov 2008 07:34:01 +0000 (07:34 +0000)]
role assign: MDL-8312 Restrict which roles can be assigned at which contextlevels.
* 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.
tjhunt [Tue, 4 Nov 2008 10:49:31 +0000 (10:49 +0000)]
user preferences: MDL-17123 cope correctly with multiple sessions.
This steals the logic from accesslib used to detect dirty contexts and so reload cached access data when permissions are changed.
Here, we track when user preferences are changed, so that if necessary we can trigger a reaload. This helps in two situations:
1. When you are logged into Moodle with two different browsers.
2. When someone else changes one of your preferences.
After this change, you will see the changed user pref immediately in all sessions.
This adds one cheap DB query to any page that tries to access a user preference (which is almost all of them, because of deciding whether to show the messaging pop-up). It adds a few more queries in the cases when a user preference is changed. This is in the name of correctness.
tjhunt [Tue, 4 Nov 2008 07:22:23 +0000 (07:22 +0000)]
weblib: MDL-17085 a function to print a collapsible region of the UI, with the collapsed state stored in a user_perference - minor layout improvements for IE.
tjhunt [Mon, 3 Nov 2008 06:06:08 +0000 (06:06 +0000)]
user selection: MDL-17072 Polishing the role assign page:
* Make the role being assigned clear in the title
* Make the options in the middle of the page be in a collapsable options section, collapsed by default.
* Put them in a smaller font too.
* Switch the date selectors here to use a shorter date format, and change 'Course start date' to 'Course start'.
tjhunt [Mon, 3 Nov 2008 06:04:41 +0000 (06:04 +0000)]
weblib: MDL-17085 a function to print a collapsible region of the UI, with the collapsed state stored in a user_perference - improve the images by giving them a transparent background.
tjhunt [Mon, 3 Nov 2008 05:27:10 +0000 (05:27 +0000)]
weblib: MDL-17085 a function to print a collapsible region of the UI, with the collapsed state stored in a user_perference - I forgot the PHP docs before.
tjhunt [Mon, 3 Nov 2008 05:03:00 +0000 (05:03 +0000)]
user selector: MDL-16996- followup - change optgroup label escaping funciton to keep Nicolas Martignoni happy. I can's say I full understand this issue.
stronk7 [Sat, 1 Nov 2008 00:30:55 +0000 (00:30 +0000)]
MDL-14952 - roles: 'moodle/legacy:guest' was preventing admins to post
new discussions in fron page if $CFG->defaultfrontpageroleid = guest. Merged from 19_STABLE
mudrd8mz [Fri, 31 Oct 2008 21:11:46 +0000 (21:11 +0000)]
MDL-17094 Allow translators to disable automatic language update during Moodle upgrade.
One needs just add $CFG->skiplangupgrade = true; to their config.php and keep their language pack up-to-date manually. This is intended for lang pack maintainers with CVS access only.
This is backpported from MOODLE_19_STABLE admin/index.php
nicolasconnault [Fri, 31 Oct 2008 15:33:45 +0000 (15:33 +0000)]
MDL-17091 Adding part of GoogleData API from the Zend Framework, in order to support portfolio and repository functions. Also completed basic portfolio plugin.
jamiesensei [Fri, 31 Oct 2008 04:52:29 +0000 (04:52 +0000)]
MDL-15736 "deleting regrade report. Regrade functionality is now part of overview report" putting quiz_regrade.php back into HEAD since lang files from HEAD are downloaded to use on older versions of Moodle, should not delete obsolete lang files.