Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
3.3.9, 3.4.4, 3.5.3, 3.6.1
-
MOODLE_33_STABLE, MOODLE_34_STABLE, MOODLE_35_STABLE, MOODLE_36_STABLE
-
MOODLE_35_STABLE, MOODLE_36_STABLE
-
MDL-64439-master -
Description
When a user tried to login and view a resource in a single step (ie it was bookmarked or a tab is re-opening) and that resource has been set to not be visible to students, but this user can see it, then it fails. This is because the $cm->uservisible property is staticaly cache in the get_fast_modinfo from before the auth hooks fire.
Tested with auth_basic and auth_saml2 plugin which both user the pre_loginpage_hook
Actual behavior: you will get redirect 303 for resource page, then 200 status for a course page and no filename, something like
> GET /RESOURCE_URL HTTP/1.1 |
< HTTP/1.1 303 See Other |
> GET /course/view.php?id=2 HTTP/1.1 |
< HTTP/1.1 200 OK |
Attachments
Issue Links
- has a non-specific relationship to
-
MDL-64394 Users authenticated via pre_loginpage_hook are not correctly set in the apachelog
-
- Closed
-