-
Improvement
-
Resolution: Fixed
-
Minor
-
3.9.5
-
-
MOODLE_39_STABLE
-
MOODLE_400_STABLE
-
Moodle App 4.0
Reported by Shamim:
- As admin in web, create a course with at least 1 resource (e.g. a page) and 1 activity (e.g. a choice).
- Disable "Offline use" in the site.
- In the app, login as a student and open the resource and the activity. Check they both load fine.
- Once opened, go back to the course.
- As admin/teacher, hide both modules so the student can no longer access them.
- In the app, click the resource. Check that it still opens fine (ideally it should display an error).
- Go back to the course and click the activity. Check that it displays an error.
The reason is that we still allow downloading files even if offline use is disabled (to prevent refactor all resources), and WS calls are optional in resources so the app doesn't know that the resource is no longer accessible. IMO we shouldn't ignore WS calls errors if the error comes from Moodle.