The API was changed slightly so that has_capability now takes the
whole $context object (we almost always have it anyway)
The $kill thing was removed. If you want to assert a capability
then use:
require_capability('capname', $context);
with optional variables to modify the error message
Misc bugs here and there also removed and code tidied
=======================================
WARNING: DEV IS CURRENTLY VERY UNSTABLE.
This is a mega-checkin of the new Roles system. A lot of changes have
been made in core and modules.
Currently there are a lot of rough edges and known problems. We are
working hard on these .. .the reason for getting this into HEAD at this
stage is enable us to move faster (our branch was diverging from HEAD
too much).
Please keep an eye on http://docs.moodle.org/en/Roles for current status
and information for developers on how to use the new Roles system.
A new configuration variable is avaliable to limit which fields normal user can see about other users. Teachers/admins can still see the full info.
This provides some degree of privacy for students.
In addition, if any tutor in the list is not subscribed to the teacher forum they will be subscribed automatically.
Also show hidden tutors as well when a teacher is viewing the participants list.
And some small bug fixes
Fix for bug 4127:
In the course participants page, selecting an initials filter in one course
and then moving to another (the filter would propagate) could result in few
or no results being displayed. The teacher would then have no way of
resetting the filter and viewing all (or possibly any) participants.
Fixed by making each course participant page independent. They no longer
share sort orders, collapsed column state, or initials filters.
Converted the students table to use the new table class
Fixed bug 3114: when sorting by country, prepend country code to the country name
Fixed behavior of autohiding teacher list; now there is a hide/show icon to be
consistent with the rest of Moodle
Fixed "show all" option so that the user can control it instead of relying on auto behavior
Fixed HTML, removed all inline styles
Improved accessibility (alt tags for images)
Updated obsolete optional_variable calls to optional_param
Several cosmetic and other improvements I 've already forgotten :P