Merge branch 'MDL-50966-master' of git://github.com/jleyva/moodle
[moodle.git] / lib / db / services.php
index a515848..c9a2703 100644 (file)
@@ -323,6 +323,15 @@ $functions = array(
         'capabilities'  => 'moodle/course:managegroups',
     ),
 
+    'core_group_get_activity_allowed_groups' => array(
+        'classname'     => 'core_group_external',
+        'methodname'    => 'get_activity_allowed_groups',
+        'classpath'     => 'group/externallib.php',
+        'description'   => 'Gets a list of groups that the user is allowed to access within the specified activity.',
+        'type'          => 'read',
+        'capabilities'  => '',
+    ),
+
     'core_notes_get_course_notes' => array(
         'classname'     => 'core_notes_external',
         'methodname'    => 'get_course_notes',
@@ -1147,6 +1156,7 @@ $services = array(
             'core_message_get_blocked_users',
             'gradereport_user_get_grades_table',
             'core_group_get_course_user_groups',
+            'core_group_get_activity_allowed_groups',
             'core_user_remove_user_device',
             'core_course_get_courses',
             'core_completion_update_activity_completion_status_manually',