Closed (fixed)
Project:
Quiz
Version:
7.x-5.x-dev
Component:
Code - Quiz core
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
9 Sep 2016 at 01:07 UTC
Updated:
30 Sep 2016 at 14:04 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
joelpittetHere's a patch to resolve this, hope I took the right route?
Comment #4
joelpittetActually two problems,
If they don't have access 'success' should be
FALSE, no?Comment #6
djdevinJust changed one of the calls, should fix the tests.
Comment #8
joelpittetThank you @djdevin for helping fix most of the test failures!
The test that failed needed a user with 'access quiz' permission and anonymous doesn't have that by default, so I logged in a user that does (as mentioned in comment).
Also added some extra tests to ensure the message that says they are blocked isn't showing by accident (consider it a regression test maybe?)
Comment #9
joelpittetComment #10
joelpittetSeems to be good now. Thoughts @djdevin?
Comment #11
djdevinLooks good, I just extended the check to /take as well to make sure that page is blocked as well.
Comment #12
djdevinThanks, fixed!