-
Bug
-
Resolution: Fixed
-
Major
-
3.2
-
MOODLE_32_STABLE
-
MOODLE_32_STABLE
-
MDL-56870-master-v2 -
Since we now have backgrounded activity deletion (MDL-54751), we need to prevent deleted modules being accessed via the mod/XXX/view.php?id=1 pages.
To replicate the problem:
- Create and activity and view it.
- Copy the URL
- Delete the activity
- Paste the copied URL and notice that you can still see the activity.
Perhaps something like require_login (which already uses modinfo cache) can be used to restrict access to modules marked as 'deletioninprogress'.