2201 Commits

Author SHA1 Message Date
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
dongsheng
35f0660ab4 "MDL-17143, don't display the user description at all when user isn't enrolled in any courses, merged and modified from 1.9" 2008-11-10 03:06:27 +00:00
stronk7
fb81188c6c NOTINTRACKER: Fixed innocent typo 2008-11-07 12:58:03 +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
tjhunt
fcaa214b6e user selector: MDL-16966 Properly preserce the enrolment start option through page reloads. 2008-11-06 05:54:46 +00:00
tjhunt
e98c64a6e1 generator: Fix to use role_assign, rather than screwing with the role_assignments table directly. 2008-11-06 04:10:22 +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
danmarsden
ac7658aa33 MDL-17071 fix misleading text - it's removing enrolments not assignments 2008-11-05 07:13:26 +00:00
skodak
cbc08f3bfc MDL-17130 dml: eliminated $CFG->dbfamily 2008-11-05 00:12:30 +00:00
tjhunt
09c660e407 user selection: MDL-17072 Polishing the role assign page: Do processing before print_header in line with best practice. 2008-11-04 07:26:32 +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
mudrd8mz
f9a064f9f5 MDL-17094 Automatic language update can be disabled via $CFG->skiplangupgrade settings. Merged from MOODLE_19_STABLE 2008-11-01 19:35:43 +00:00
skodak
b50f80dd6f CONTRIB-849 phpPgAdmin integration hook; merged from MOODLE_19_STABLE 2008-11-01 17:54:04 +00:00
tjhunt
6cab02ac52 user selection: MDL-16993 Convert the assign roles page to use the new components.
At the same time, I took the opportunity to try to work on some of the usability issues on this page. Note that I have not quite finished! So don't comment until tomorrow.

In the course of doing this, I also did: half of

MDL-11529 Show the number of assignees of each role in the change role dropdown on this page.
MDL-17067 Make it clear in the UI that admins are not allowed to unassign themselves.
2008-10-30 10:49:15 +00:00
tjhunt
96f1a7a265 roles admin: Improve the usability of the assign roles interface - this is the first half of the work. Part of MDL-16993.
To do this, I found a way to clean up the method signatures of a couple of accesslib methods, so I did, hence the fact that this seems to touch some unrelated files.

Also, there is a nice new method in accesslib get_context_url, which gives you the natural URL for a context, so the course view page, or the user profile, etc.
2008-10-30 06:26:18 +00:00
skodak
2f17b76d4b MDL-17057 dml: fixed regression changed by removed dbpersist parameter - sorrrry 2008-10-29 09:24:45 +00:00
tjhunt
6d5a0e939f random course generator: Helpful comment at the top of the file. 2008-10-29 08:39:33 +00:00
skodak
beaa43db85 MDL-17036 dml: dbpersist moved into dboptions 2008-10-27 22:21:34 +00:00
jamiesensei
ef09fadc44 MDL-17001 "Moving admin/report/simpletest to directory unittest" changing some references to old simpletest directory name. 2008-10-24 15:13:08 +00:00
jamiesensei
368f375370 renamed admin/report/simpletest to unittest 2008-10-24 15:10:41 +00:00
tjhunt
99cd2f77bb user selection: MDL-16991 Improve the user selector used on the assign roles and group memebers pages - Create admin setting 2008-10-24 06:41:50 +00:00
tjhunt
8c901fb816 xmldb checks: MDL-16976 write a check that finds rows that violate the foreign key constraints. 2008-10-23 08:32:12 +00:00
tjhunt
9f5e5dee97 xmldb checks: MDL-16975 refactor the various checks to eliminate duplicated code. 2008-10-23 08:30:43 +00:00
jerome
ef378cdcf4 MDL-15352: doesn't use anymore mnet system function, implemeted new mnet function, remote moodle service will appear into the peer service 2008-10-23 08:14:23 +00:00
tjhunt
98bcd9d1ff roles interface: MDL-16965 make a view that explains the has_capability calculation for a given capability in a given context for a given user, like on http://docs.moodle.org/en/How_permissions_are_calculated. 2008-10-22 09:48:16 +00:00
jerome
69574ad1f4 MDL-16929: fix bulk user download function. (the shortname column title is now profile_field_"shortname"), merged from 19 2008-10-22 01:33:37 +00:00
nicolasconnault
7b2f3680a3 MDL-16892 Fixed bug in accesslib role_fix_names method. Merging from MOODLE_19_STABLE 2008-10-20 13:47:08 +00:00
arborrow
b4bd91ceb1 fixed trivial typo in comment; merged from 19STABLE 2008-10-18 04:19:46 +00:00
stronk7
5e7206a8f6 Adding new setting "statsruntimedays" to configure the number of days to
calculate as max per stats cron invocation. Part of MDL-16709 ; merged from 19_STABLE
2008-10-13 21:53:49 +00:00
jerome
e02135a686 MDL-16865: change default course number of section to '3' 2008-10-13 09:36:55 +00:00
jerome
a8867477c7 MDL-16865: change default course format to 'Weekly' 2008-10-13 09:34:38 +00:00
jerome
f48fb4d692 MDL-15402: add a repository type functionality in the administration: enable/disable course and user repository setting 2008-10-09 03:02:26 +00:00
jerome
15b25b982a MDL-12846: add default to language field (course default settings page) 2008-10-07 09:39:32 +00:00
scyrma
feecd4d6a5 MDL-14092: forcing imported users with a weak password to change it on first login. (merge from 1.9) 2008-09-26 09:13:24 +00:00
tjhunt
61a828842e MDL-16702 Remove unnecessary JavaScript from bulk user enrol page 2008-09-26 08:22:46 +00:00
tjhunt
1a22e31954 MDL-16583 switch to print_js_call 2008-09-26 08:22:16 +00:00
tjhunt
192a0a698b Fix whitespace. 2008-09-26 07:17:40 +00:00
tjhunt
1b63d34db7 MDL-16605 Add an ajaxy search box on the define/override roles screen to help find the capability you want 2008-09-26 06:50:31 +00:00
tjhunt
16851b22ad MDL-16676 All references to the text.html and emoticons.html files need to be updated to point to text2.html and emoticons2.html 2008-09-25 10:04:01 +00:00
jerome
cfec045442 MDL-12846: move course default settings into config_plugin table 2008-09-25 07:33:22 +00:00
tjhunt
80f69dc0ee MDL-16676 All references to the text.html and emoticons.html files need to be updated to point to text2.html and emoticons2.html 2008-09-25 07:12:46 +00:00
tjhunt
ac324e05ea MDL-16675 change callers to require_js to take advantage of the fact that callers no longer have to add $CFG->wwwroot themselves. 2008-09-25 06:40:52 +00:00
jerome
eb1b95976f MDL-12846: add course default settings page 2008-09-25 02:31:26 +00:00
skodak
bff34a6747 MDL-16365 domain restrictions are now optional when changing email address; merged from MOODLE_19_STABLE 2008-09-24 17:00:49 +00:00
skodak
5fc9760399 MDL-16626 simplified editor selection, going to change it a bit more later 2008-09-23 15:19:21 +00:00
skodak
53b20fe35a MDL-16637 removing obsoleted spellchecker support 2008-09-23 15:12:07 +00:00
skodak
6bebbe4503 MDL-16627 removing obsoleted HTMLArea 2008-09-23 14:16:31 +00:00
tjhunt
7264519e3f MDL-16583 - Clean up some fo the places we link to javascript files, to use require_js 2008-09-23 07:00:59 +00:00
nicolasconnault
d27a349bfe MDL-16486 Improved interface, added permission warning and other minor fixes 2008-09-23 06:42:18 +00:00
tjhunt
3a4f0a34f5 MDL-13894 Impoved fix with less duplicated code, no notices displayed before you get to the 'New settings' screen, and named constants instead of magic numbers. 2008-09-23 05:18:42 +00:00