Merge branch 'w17_MDL-26249_m21_usercourses' of git://github.com/skodak/moodle

This commit is contained in:
Eloy Lafuente (stronk7) 2011-04-26 11:33:46 +02:00
commit b90b28e2cb
2 changed files with 78 additions and 0 deletions

View file

@ -159,6 +159,15 @@ $functions = array(
moodle/role:review, moodle/site:accessallgroups, moodle/course:enrolreview',
),
'moodle_enrol_get_users_courses' => array(
'classname' => 'moodle_enrol_external',
'methodname' => 'get_users_courses',
'classpath' => 'enrol/externallib.php',
'description' => 'Get list of courses user is enrolled in',
'type' => 'read',
'capabilities'=> 'moodle/course:viewparticipants',
),
'moodle_role_assign' => array(
'classname' => 'moodle_enrol_external',
'methodname' => 'role_assign',