Commit graph

3353 commits

Author SHA1 Message Date
toyomoyo
d76a5a7fed replacing references to user_* tables 2006-09-19 01:44:33 +00:00
skodak
21b6db6eff added capabilty risks into access.php and GUI for define role and override; minor fixes for capability types in forum 2006-09-18 21:32:49 +00:00
skodak
31f267963a MDL-6568 shortname added to roles 2006-09-18 17:40:22 +00:00
toyomoyo
38079c83eb removing get_creators(), no more reference to the function 2006-09-18 12:04:16 +00:00
toyomoyo
492e507f7b no more refernece to remove_creator() function 2006-09-18 11:55:04 +00:00
skodak
dca1937c02 removed references to /requested(teachers?|students?)name/ and 'showsiteparticipantslist' - we are now using only default names stored in langpacks for backwards compatibility 2006-09-18 11:21:24 +00:00
toyomoyo
102d890c14 remove_admin() no longer referenced 2006-09-18 10:47:09 +00:00
toyomoyo
6eccd8f099 add_creator no longer in use 2006-09-18 10:18:26 +00:00
vyshane
840c1c31fa Added moodle/site:viewparticipants 2006-09-18 09:02:12 +00:00
moodler
a4e108450f Some trivial tidying of source 2006-09-18 05:50:02 +00:00
vyshane
dd8d5345ce Removed showsiteparticipantslist, replaced with capability 2006-09-18 05:26:16 +00:00
vinkmar
cc73de7147 Fixes for MDL-6440 and MDL-6577 2006-09-18 02:41:14 +00:00
skodak
1aad431080 metacourse sync now uses roles, I will continue with fixing of GUIs tomorrow 2006-09-17 22:21:37 +00:00
skodak
4b7aaf4025 added new capability 'moodle/course:managemetacourses' 2006-09-17 21:03:35 +00:00
skodak
a25200709b fixed warning 2006-09-17 20:51:54 +00:00
cap2501
1752e584de Added dialog to confirm deletion of activity. 2006-09-17 18:20:43 +00:00
skodak
09575480bb fixed several warnings in get_course() 2006-09-17 18:07:35 +00:00
skodak
8743f4f3ec removed foter login link during initial phase of installation 2006-09-17 17:53:20 +00:00
skodak
d847bb32fd fixed non-working edit button on course page for teachers, added explanation comments 2006-09-17 17:32:45 +00:00
moodler
b963384f41 Added new convenience funtions:
get_default_course_role()  - gets default role for enrolment

   enrol_into_course() - enrols a person using the default role
2006-09-17 16:06:25 +00:00
moodler
9c641bd871 Added email_welcome_message_to_user() to send course welcome emails 2006-09-17 16:04:15 +00:00
moodler
41f6ed56ce Don't rely on the legacy capabilities to identify admins, use doanything 2006-09-17 16:00:16 +00:00
skodak
c8218a42fa Partial fix for missing deafult values in upgradesettings.php script - MDL-6577 2006-09-17 12:11:23 +00:00
moodler
b29ab53d31 Removed the setting of default values. The default is now just zero. 2006-09-17 09:08:47 +00:00
skodak
86e2c51da8 infinite loop prevention when unassigning recursively 2006-09-17 08:53:57 +00:00
skodak
4e5f3064bf role assignment and unassignment now propagates to metacourses 2006-09-17 08:42:42 +00:00
moodler
ff64aaeaec Just tidying a couple of functions 2006-09-17 07:00:47 +00:00
skodak
7f5bc80b78 backupdata folder is no longer displayed in list of directories when setting up Directory Resource - partially related to MDL-6280 ; and some other typo fixes; get_directory_list() no accepts also array of exluded files 2006-09-17 06:49:26 +00:00
moodler
746a04c500 Adding defaultrole to course table 2006-09-17 06:37:59 +00:00
vinkmar
90cfbd0ab4 Changes required for MDL-6439 made to admin_sitesettext object 2006-09-17 06:08:10 +00:00
moodler
ec6eb11097 Sort get_user_roles from most local to most general 2006-09-17 03:33:22 +00:00
moodler
5b6306677b extending get_user_roles with more options and more returned info 2006-09-16 15:22:55 +00:00
moodler
5c98bf9e3a Enrolments working better now. The core part is done, just the plugins to go.
The enrolment plugins are now checked from load_user_capability()
2006-09-16 13:59:38 +00:00
moodler
99f9cb51e0 Added new capability
moodle/role:viewhiddenassigns  - for people to see hidden assignments
2006-09-16 13:56:24 +00:00
moodler
888fb649a8 Converted deprecated get_teacher() to use new tables 2006-09-16 13:55:30 +00:00
moodler
64026e8c1e Tidy up get_users_with_capability 2006-09-16 13:54:57 +00:00
skodak
8f8ead90c7 fixed unenrol_student() - now uses roles instead of user_students table 2006-09-16 12:05:31 +00:00
skodak
7b6a42f5b8 coverted deprecated get_group_students() to use legacy capability instead of user_students table 2006-09-16 06:22:32 +00:00
skodak
a05708ad61 fixed $groupidsql in get_users_by_capability() 2006-09-16 05:56:51 +00:00
moodler
11c40e2f4e Fixed a bad bug in get_user_roles :-) 2006-09-15 14:56:32 +00:00
moodler
e58eca7222 New capability: moodle/user:viewhiddendetails 2006-09-15 14:39:16 +00:00
tjhunt
36075e092d MDL-6041 - Proper fix that eliminates the magic number 99999 when getting lists of studnets. Now, there is no arbitrary upper limit in the datalib functions, and sensible upper limits on pages that display lists of users. However, if you try to get all the site students, then get_students prints a warning in debug mode, telling you that you need to rethink your code.
Also a few more ISNULL()s eliminated.

And a typo role_assignment -> role_assignments.
2006-09-15 14:32:35 +00:00
moodler
4b10f08b88 Rename CONTEXT_USERID --> CONTEXT_USER for consistency 2006-09-15 14:09:16 +00:00
tjhunt
f00b7f8d8e The ISNULL() function is a nasty mysql-ism. The standard SQL syntax is "xxx IS NULL". Even mysql supports this, whereas noone else supports the mysql syntax. 2006-09-15 14:00:30 +00:00
moodler
5081e7868d Some SQL fixes 2006-09-15 13:51:42 +00:00
moodler
405f64c7fd Fixed some SQL error 2006-09-15 13:42:40 +00:00
moodler
2f089dd5f9 Guest account could be getting the default role 2006-09-15 13:28:18 +00:00
tjhunt
4e5a0168f8 Fix typo. 2006-09-15 13:18:28 +00:00
vyshane
15dabc3074 Merge from 1.6 stable. Small fixes to make xhtml validate. 2006-09-15 09:38:46 +00:00
toyomoyo
71dea306b4 changing lib functions to work with roles, some functions might not work as expected now 2006-09-15 09:08:48 +00:00