Commit graph

7694 commits

Author SHA1 Message Date
tjhunt
34a36b2e85 Improve error message. 2008-11-18 04:22:57 +00:00
tjhunt
a4df1cbbe5 role manage ui: MDL-8313 Refactoring and clean-up prior to basic/adv manage page. 2008-11-14 10:38:06 +00:00
tjhunt
9101efd312 cleanup: MDL-17083 Remove the old teacher, teachers, student and students columns from the course table.
For something that has been deprecated for over two years, they were still used in a lot of places!
2008-11-13 08:40:57 +00:00
tjhunt
bef12c997a course settings: MDL-16327 when creating a course, the role renames were not saved. 2008-11-13 08:11:10 +00:00
tjhunt
1e8e46879c roles interface: Code reorganisation and adding boilerplate comments.
I have collected code that used to be in lib/adminlib.php, lib/accesslib.php and user/selector/lib.php into a new admin/roles/lib.php file.

And I added standard GPL and Moodle comments to all the files in admin/roles.
2008-11-13 04:07:01 +00:00
tjhunt
e8155bc338 Fix typo. 2008-11-12 10:12:33 +00:00
tjhunt
a6e7237adc roles explanation: MDL-13538 Make a table showing the result of has_capability for every capabiltiy in a context.
This implements the page showing the table. It is not yet integrated into the tab bar. To try this, go to an Assign roles page (one with URL .../admin/roles/assign.php?contextid=...) and change the 'assign' to 'explain'.
2008-11-12 07:55:09 +00:00
tjhunt
2e3adc25b2 moodlelib: MDL-17208 user preference caching was causing a notice. 2008-11-12 01:26:49 +00:00
mjollnir_
d9c2628b58 MDL-16861 portfolio/export make sure to zip up files including the path info 2008-11-11 18:52:10 +00:00
tjhunt
7906379c9a role assign: MDL-13325 when assigning roles inside front page activites, list all users as potential users. 2008-11-11 07:23:25 +00:00
jamiesensei
91ec2c427a MDL-17183 "function 'question_get_real_state' fails when response is empty string" fixed regular expression 2008-11-10 07:03:25 +00:00
dongsheng
d9e673c10b "MDL-16549, fixed typo" 2008-11-08 14:24:53 +00:00
tjhunt
8f52ac3708 accesslib: MDL-17159 Fix regression I caused with MDL-8312. 2008-11-07 02:51:47 +00:00
skodak
d21c50373a MDL-17129 dml/ddl: improved handling of dml exception in dml 2008-11-06 18:55:54 +00:00
skodak
ba63f3775b MDL-17130 dml: removed lambda-style functions - they might be a major scalability problem in future 2008-11-06 18:36:50 +00:00
tjhunt
06de498b70 accesslib: MDL-16549 Now that moodle/site:doanything is not editiable, reset the permissions to default on all roles. 2008-11-06 08:35:23 +00:00
tjhunt
01a80f51e5 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.

Restore not tested because it is broken in HEAD.
2008-11-06 07:34:01 +00:00
skodak
591ffe1a6a MDL-17129 dml/ddl: improved ddl exceptions when changing db structure 2008-11-05 10:45:45 +00:00
skodak
b6f526be05 MDL-17110 snoopy: added import info 2008-11-05 09:13:38 +00:00
skodak
86ca52b21d MDL-17110 snoopy: added import info 2008-11-05 09:13:17 +00:00
tjhunt
faf75fe715 role overrides: MDL-17070 Improve override roles page to match the recent usability improvements on the assign page.
Including:
MDL-11529 When assigning/overriding roles, the dropdown for switching to another role should have a number in brackets

MDL-16549 Should not be able to edit the permission associated with moodle/site:doanything on any role.
2008-11-05 08:17:30 +00:00
skodak
cbc08f3bfc MDL-17130 dml: eliminated $CFG->dbfamily 2008-11-05 00:12:30 +00:00
skodak
ba98912f8c MDL-17020 pgsql: silenced php warnings 2008-11-05 00:05:41 +00:00
skodak
6e22a695d8 MDL-17129 dml: fixed dml exception handling in unit tests 2008-11-05 00:05:18 +00:00
skodak
c23b0ea11b MDL-17129 dml: implemented exceptions in new drivers, yay! 2008-11-04 23:07:14 +00:00
skodak
d8f27d7bd2 MDL-16920 mysqli: refactored driver to use new query logging 2008-11-04 22:29:18 +00:00
skodak
a6283e9127 MDL-16920 mysqli: refactored driver to use new query logging 2008-11-04 22:25:23 +00:00
skodak
d139b06701 MDL-17020 pgsql: new port dboption 2008-11-04 21:55:39 +00:00
skodak
9214025e3e MDL-17129 basic dml exceptions 2008-11-04 21:50:13 +00:00
stronk7
05ed3df5e0 MDLSITE-548 - langconfig: Adding thousands separator. Merged from 19_STABLE 2008-11-04 16:53:16 +00:00
mudrd8mz
0c49565b34 Set images base path to Moodle dirroot 2008-11-04 12:13:04 +00:00
tjhunt
2660377f72 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.
2008-11-04 10:49:31 +00:00
tjhunt
e7b7583cc3 user selection: MDL-17073 add options to control the search in a collapsible region - Fix IE layout glitch. 2008-11-04 09:14:03 +00:00
tjhunt
c679952e09 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. 2008-11-04 07:22:23 +00:00
tjhunt
904998d8f9 user selection: MDL-17073 add options to control the search in a collapsible region. 2008-11-04 05:12:12 +00:00
tjhunt
67c8a3e870 user selection: MDL-17073 add options to control the search in a collapsible region. 2008-11-04 05:12:12 +00:00
skodak
23a766143d MDL-17110 snoopy: imported new version 1.2.4 2008-11-03 07:55:46 +00:00
tjhunt
c9f8e118c9 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'.
2008-11-03 06:06:08 +00:00
tjhunt
512c5901fe 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. 2008-11-03 05:27:10 +00:00
dongsheng
aa19998a72 "MDL-16954, use rebert\'s patch to clean notice/warning in cron job via php cli, merged from 1.9" 2008-11-03 05:25:30 +00:00
tjhunt
f2eb500238 weblib: MDL-17085 a function to print a collapsible region of the UI, with the collapsed state stored in a user_perference. 2008-11-03 05:04:23 +00:00
dongsheng
b3e6e8047b "MDL-16341, add upload function for flickrlib" 2008-11-03 03:22:55 +00:00
skodak
0cde3ede1c MDL-11789 fixed regressions preventing file caching when default used; merged from MOODLE_19_STABLE 2008-11-01 19:28:31 +00:00
skodak
a857b7ea38 MDL-17099 htmlpurifier: new version from upstream 2008-11-01 18:58:29 +00:00
nicolasconnault
8470c13829 MDL-17091 Removing superfluous Zend framework files 2008-10-31 21:36:57 +00:00
mudrd8mz
66439e36ce 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
2008-10-31 21:11:46 +00:00
nicolasconnault
647a1a8289 MDL-17091 Added zend framework to include_path 2008-10-31 15:34:23 +00:00
nicolasconnault
5ab88978b9 MDL-17091 Adding part of GoogleData API from the Zend Framework, in order to support portfolio and repository functions. Also completed basic portfolio plugin. 2008-10-31 15:33:45 +00:00
nicolasconnault
0d4231f0e3 MDL-16341 Finished flickr plugin 2008-10-31 09:14:06 +00:00
tjhunt
3b0bf2e4dd ajax: MDL-17086 Add a CSS class name to <body> when JavaScript is enabled 2008-10-31 08:45:35 +00:00