-
Bug
-
Resolution: Fixed
-
Minor
-
3.7.1
-
MOODLE_37_STABLE
-
MOODLE_36_STABLE, MOODLE_37_STABLE
-
MDL-66113-master -
The WS mod_assign_get_assignments applies overrides to the returned times: allowsubmissionsfromdate, cutoffdate and duedate. This is done with the function update_effective_access.
However, the WS mod_assign_get_submission_status doesn't apply the overrides to the assign instance, and so the calculated values canedit and cansubmit are wrong (they use the default times, not the overridden ones).
How to reproduce:
- Create an assign with a cut-off date that has already passed.
- Create a user override in that assign with a future cut-off date (Gear icon > User overrides).
- Call the WS mod_assign_get_submission_status for the user that you created the override. Check that the value of canedit is false.
- will help resolve
-
MOBILE-3065 Add submission button won't show for users with override
- Closed