MDL-66113 assign: Apply user overrides in get_submission_status WS

This commit is contained in:
Juan Leyva 2019-08-16 10:37:12 +01:00
parent 1c3efe48f8
commit 0b9f2215d0
2 changed files with 61 additions and 0 deletions

View file

@ -2350,6 +2350,8 @@ class mod_assign_external extends external_api {
throw new required_capability_exception($context, 'mod/assign:viewgrades', 'nopermission', '');
}
$assign->update_effective_access($user->id);
$gradingsummary = $lastattempt = $feedback = $previousattempts = null;
// Get the renderable since it contais all the info we need.