MDL-49796 assign: New external function view_grading_table
[moodle.git] / mod / assign / db / services.php
index 3061e78..e659519 100644 (file)
@@ -144,6 +144,15 @@ $functions = array(
                 'classpath' => 'mod/assign/externallib.php',
                 'description' => 'Reveal the identities for a blind marking assignment',
                 'type' => 'write'
-        )
+        ),
+
+        'mod_assign_view_grading_table' => array(
+                'classname'     => 'mod_assign_external',
+                'methodname'    => 'view_grading_table',
+                'classpath'     => 'mod/assign/externallib.php',
+                'description'   => 'Simulate the web interface grading table view',
+                'type'          => 'write',
+                'capabilities'  => 'mod/assign:view, mod/assign:viewgrades'
+        ),
 
 );