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
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
tjhunt
8f52ac3708
accesslib: MDL-17159 Fix regression I caused with MDL-8312.
2008-11-07 02:51:47 +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
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
c23b0ea11b
MDL-17129 dml: implemented exceptions in new drivers, yay!
2008-11-04 23:07:14 +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
655bbf511d
MDL-16669 dml: improved sql_substring(), added unit tests
2008-10-28 15:11:10 +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
poltawski
386c151ec5
MDL-16816 - fix role_assign() to match php docs
...
Return role assignment id on succesful assignment
2008-10-09 13:52:39 +00:00
stronk7
8c44681c23
Substring MSSQL function *requires* 3rd parameter - MDL-16655 ; merged from 19_STABLE
2008-09-24 17:35:42 +00:00
stronk7
3128242122
Prevent get_users_by_capability() to return deleted users. MDL-16323 ; merged from 19_STABLE
2008-09-11 22:17:20 +00:00
scyrma
3bea11c8c1
MDL-14679: regression caused by a missing '>'.
2008-09-09 02:23:47 +00:00
tjhunt
ad944e7832
MDL-16343 New PARAM_ type, PARAM_CAPABILITY.
2008-09-08 07:00:49 +00:00
nicolasconnault
837e6a44f7
MDL-16369 Added error info in accesslib
2008-09-06 13:19:26 +00:00
nicolasconnault
f689028c7e
MDL-16369 Added error info in accesslib
2008-09-06 13:17:15 +00:00
tjhunt
8238f44f16
MDL-12336 Inconsistent naming of the Front page area of the question bank, and the front page context more generally.
2008-09-05 04:06:17 +00:00
stronk7
4ce763762e
Fix some problems with named parameters and improve
...
get_user_courses_bycap() queries. MDL-16209 ; merged from 19_STABLE
2008-08-28 18:08:06 +00:00
stronk7
082e777a54
Avoid "some" ra's duplicates. MDL-14817 ; merged from 19_STABLE
2008-08-18 22:46:40 +00:00
stronk7
8ac8f06afe
Making some accesslib queries cross-db. Avoid using DISTINCT clauses on TEXT fields. MDL-16034
...
(plus minor unmerged change in comment)
2008-08-18 18:36:53 +00:00
scyrma
b98e7c62ff
MDL-16096: required library was included in the wrong function - this removes the old one.
2008-08-18 06:26:45 +00:00
scyrma
11dca3eed6
MDL-16096: missing library require - Fix by Joseph Morwick.
2008-08-18 06:20:50 +00:00
skodak
775f811a66
MDL-16002 rewritten upgrade locking and better upgrade progress tracking; MDL-16070 Do not use $a[0] syntax in lang packs + various other upgrade improvements and fixes
2008-08-16 12:16:01 +00:00
skodak
44df8fa94c
MDL-15941 block view permissions override regression fixed
2008-08-06 05:07:46 +00:00
moodler
2edde5c7be
MDL-15841 Removed the default safe overrides for new installs (MDL-8521)
...
This MAY be reversed in Moodle 2.0, pending other roles work and discussion
2008-07-28 03:18:32 +00:00
skodak
f432bebff2
MDL-11421 context levels fixed in capability definitions, sorting of caps by name, plug-ins may report used core caps, fixed some risks; merged from MOODLE_19_STABLE
2008-07-24 21:59:13 +00:00
skodak
3a0c6cca33
MDL-8521 new feature - safe overrides, see tracker for details; merged from MOODLE_19_STABLE
2008-07-23 16:10:06 +00:00
skodak
ffc670d931
MDL-9983 role_unassign should not touch group members table directly - we need events; merged from MOODLE_19_STABLE
2008-07-06 22:54:46 +00:00
skodak
96608a55bd
MDL-9983 role assignment related triggers; merged from MOODLE_19_STABLE
2008-07-06 19:30:12 +00:00
skodak
17deeebc8f
MDL-15071 sqlite compatibility fix - by Andrei Bautu
2008-06-22 20:42:19 +00:00
skodak
0cbe81112a
MDL-14580 rewritten course sorting algorithms
2008-06-16 14:25:53 +00:00
dongsheng
e6edb40e7a
"MDL-14129, fix print_error"
2008-06-15 11:47:27 +00:00
skodak
b1f93b1512
MDL-15246 moving all remaining ddl function to adminlib, keeping old lib/ddllib.php only for BC withexisting code; fixed inline docs related to ddl
2008-06-15 10:32:50 +00:00
skodak
f67cab32ec
MDL-15094 some forgotten conversions
2008-06-05 18:01:22 +00:00
skodak
b820eb8c60
MDL-15073 delete_records now truncates table if deleting all records, fixed some regressions
2008-05-31 15:32:28 +00:00
thepurpleblob
57443b9af4
MDL-15056
...
Added missing global $DB
2008-05-30 11:06:49 +00:00
skodak
7de9dff6c5
MDL-15042 fixed regression - thanks Howard
2008-05-29 15:07:05 +00:00
thepurpleblob
e60d5b2676
MDL-15043
...
No need to use $USER in the log write call, it's the default
2008-05-29 12:49:29 +00:00
skodak
568df4756a
MDL-15020 fixed typo causing deleting of all roles and contexts - thanks Joseph!
2008-05-27 13:26:00 +00:00
skodak
727c22375f
MDL-14995 fixed param typo
2008-05-27 09:32:05 +00:00
skodak
bc8d118210
MDL-14679 fixed $exceptions regression in first part of datalib conversion
2008-05-25 10:16:53 +00:00
skodak
e3c7f155d8
MDL-14978 removed obsoleted isadmin()
2008-05-25 10:08:05 +00:00
skodak
dc10f119bb
MDL-14679 fixed warning and change false to array() when no users found
2008-05-24 20:43:33 +00:00
skodak
5a4e739817
MDL-14679 accesslib conversion to new dml
2008-05-24 18:35:48 +00:00
sam_marshall
c2f10673b2
MDL-14965: Pass-by-reference call broke install on php5
2008-05-23 10:36:28 +00:00
dongsheng
7ade55ad96
"MDL-14668, fix course full in activity reports (upgrade course module version)"
2008-05-16 02:15:23 +00:00
stronk7
137e0e6f65
Fixed typo preventing params to be properly passed.
2008-05-15 22:55:27 +00:00