MDL-54026 WS: Convert type 'delete' => 'write'
authorAndrew Nicols <andrew@nicols.co.uk>
Tue, 3 May 2016 01:21:21 +0000 (09:21 +0800)
committerAndrew Nicols <andrew@nicols.co.uk>
Tue, 3 May 2016 01:51:39 +0000 (09:51 +0800)
This was not the type you were looking for.

lib/db/services.php

index 6956236..f96b123 100644 (file)
@@ -86,7 +86,7 @@ $functions = array(
         'methodname' => 'delete_cohort_members',
         'classpath' => 'cohort/externallib.php',
         'description' => 'Deletes cohort members.',
-        'type' => 'delete',
+        'type' => 'write',
         'capabilities' => 'moodle/cohort:assign'
     ),
     'core_cohort_delete_cohorts' => array(
@@ -94,7 +94,7 @@ $functions = array(
         'methodname' => 'delete_cohorts',
         'classpath' => 'cohort/externallib.php',
         'description' => 'Deletes all specified cohorts.',
-        'type' => 'delete',
+        'type' => 'write',
         'capabilities' => 'moodle/cohort:manage'
     ),
     'core_cohort_get_cohort_members' => array(
@@ -439,7 +439,7 @@ $functions = array(
         'methodname' => 'delete_group_members',
         'classpath' => 'group/externallib.php',
         'description' => 'Deletes group members.',
-        'type' => 'delete',
+        'type' => 'write',
         'capabilities' => 'moodle/course:managegroups'
     ),
     'core_group_delete_groupings' => array(
@@ -454,7 +454,7 @@ $functions = array(
         'methodname' => 'delete_groups',
         'classpath' => 'group/externallib.php',
         'description' => 'Deletes all specified groups.',
-        'type' => 'delete',
+        'type' => 'write',
         'capabilities' => 'moodle/course:managegroups'
     ),
     'core_group_get_activity_allowed_groups' => array(