moodler
|
1d546bb125
|
Fix for get_users_by_capability() so the caller can choose whether
they want users with doanything included or not
|
2006-09-25 03:00:50 +00:00 |
|
moodler
|
218eb65122
|
Changed the flag to be on a given user basis (just in case it gets called
for a lot of users)
|
2006-09-25 01:42:41 +00:00 |
|
moodler
|
e4ec4e4149
|
Added a checking flag to check_enrolment_plugins() to make sure that it
never repeats more than once in an invocation. Otherwise it's sometimes
possible for role_assign() during the enrolment process to cause loops.
|
2006-09-25 01:34:21 +00:00 |
|
moodler
|
e836a7ddd8
|
When getting users by capability then exclude those with doanything at site level
|
2006-09-24 16:14:39 +00:00 |
|
moodler
|
11ac79ff0e
|
Extend the require_login in require_capability a bit
|
2006-09-24 13:15:13 +00:00 |
|
moodler
|
f365252121
|
Handle site-level block names in capability settings too
|
2006-09-24 11:32:11 +00:00 |
|
skodak
|
ece4945bd2
|
role sortorder column now has unique index; new function get_all_roles() that returns all roles with correct sort
|
2006-09-23 12:51:00 +00:00 |
|
moodler
|
65b0c132ed
|
When getting lists of roles, put role names through format_string
(ie for multilang filter)
|
2006-09-23 12:46:53 +00:00 |
|
skodak
|
8420bee94e
|
towards unique role sortorder - fixes for create_role() and new delete_role()
|
2006-09-23 10:43:24 +00:00 |
|
skodak
|
7eb0b60a1f
|
debugging and error reporting level fixes and improvements MDL-6671
|
2006-09-23 09:38:39 +00:00 |
|
moodler
|
9991d157ea
|
Further fixes for MDL-6601 ... that should be complete now.
|
2006-09-23 06:10:48 +00:00 |
|
skodak
|
16e2e2f394
|
fixed error in fetch_context_capabilities() when no local capabilities defined in context
|
2006-09-22 21:31:19 +00:00 |
|
moodler
|
96fc0072b4
|
Removed some old debugging
|
2006-09-22 15:54:03 +00:00 |
|
moodler
|
e2183037b3
|
Fixed a typo for enrol_into_course(), thanks Ethem
|
2006-09-22 13:16:32 +00:00 |
|
moodler
|
aad2ba95d1
|
Upgrading table to rename the context->aggregatelevel field which was
really bugging me. Code should be a little bit more readable now.
Apologies to those with non-core code already using this field.
|
2006-09-22 06:19:32 +00:00 |
|
moodler
|
82396e5b1f
|
Improved error messages for role_assign to be more helpful
|
2006-09-22 05:23:59 +00:00 |
|
moodler
|
9d829c681d
|
Removing some notices
|
2006-09-22 05:17:57 +00:00 |
|
toyomoyo
|
5b5781f4f5
|
some new functions to help backuo
|
2006-09-22 01:46:45 +00:00 |
|
moodler
|
988ad08450
|
Use role sortorder when getting role lists
|
2006-09-22 01:21:01 +00:00 |
|
skodak
|
b5959f3071
|
partial rewrite of role manage script, improved notice_yesno(), other minor fixes and changes; I will work on assign and overide tomorrow ;-)
|
2006-09-21 22:34:45 +00:00 |
|
stronk7
|
85f101fa26
|
SQL ANDs mus be, always, "AND" :-P
|
2006-09-21 17:18:56 +00:00 |
|
stronk7
|
d7d05cf2f3
|
SQL ORs must be, always, "OR"
|
2006-09-21 17:09:28 +00:00 |
|
moodler
|
2d07587b4c
|
Improvements to switchroles
1) You can have separate switchroles active in every course
2) Admins get a better view (doanything is supressed when switchroles active)
|
2006-09-21 15:58:59 +00:00 |
|
moodler
|
3a52e764e4
|
New "Switch Role" functionality to replace the old "Student view".
It's not well-tested yet and probably doesn't quite work. I will keep debugging this tonight from home.
|
2006-09-21 09:16:41 +00:00 |
|
toyomoyo
|
01e52ac70a
|
changes to backups (where the roles info are stored)
|
2006-09-21 09:09:16 +00:00 |
|
toyomoyo
|
4929302769
|
adding roles support for backups
|
2006-09-21 06:57:14 +00:00 |
|
toyomoyo
|
e38f38c326
|
fix for MDL-6571, added get_roles_on_exact_context() for backup
|
2006-09-21 03:21:33 +00:00 |
|
skodak
|
eef868d17d
|
major whitespace cleanup - fixed trailng whitespace in new files and admin area
|
2006-09-20 21:00:45 +00:00 |
|
toyomoyo
|
dc5586907d
|
replacing deprecated calls and references to capability calls
|
2006-09-20 09:00:04 +00:00 |
|
vyshane
|
759ac72de1
|
Added new function function fetch_context_independent_capabilities(). Modified fetch_context_capabilities() to use the former.
Fixed get_roles_used_in_context() sql query. r.sortorder must be selected if it is to be used in an ORDER BY clause.
|
2006-09-20 08:30:49 +00:00 |
|
skodak
|
8521d83aff
|
role_context_capabilities should handle current context too and role override simply use parent context
|
2006-09-20 06:24:55 +00:00 |
|
moodler
|
c4381ef5d2
|
FIxed a bug where $context had not been defined in enrol_into_course
|
2006-09-20 02:19:08 +00:00 |
|
moodler
|
7f7cacdf4e
|
Made the debugging message a bit less passive
|
2006-09-20 01:52:49 +00:00 |
|
tjhunt
|
a8a7300acc
|
In debug mode, warn people if they are asking for an unknown capability.
|
2006-09-19 22:57:17 +00:00 |
|
skodak
|
a6b02b652b
|
RISK_ADMIN replaced with RISK_CONFIG
|
2006-09-19 07:33:22 +00:00 |
|
toyomoyo
|
2d9965e1dc
|
function should be looking up parent contexts too
|
2006-09-19 02:47:55 +00:00 |
|
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 |
|
skodak
|
1aad431080
|
metacourse sync now uses roles, I will continue with fixing of GUIs tomorrow
|
2006-09-17 22:21:37 +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
|
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 |
|
moodler
|
746a04c500
|
Adding defaultrole to course table
|
2006-09-17 06:37:59 +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
|
64026e8c1e
|
Tidy up get_users_with_capability
|
2006-09-16 13:54:57 +00:00 |
|
skodak
|
a05708ad61
|
fixed $groupidsql in get_users_by_capability()
|
2006-09-16 05:56:51 +00:00 |
|