Closed (fixed)
Project:
Quiz
Version:
7.0.x-dev
Component:
Code - Quiz core
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
3 May 2022 at 10:58 UTC
Updated:
3 Apr 2025 at 00:04 UTC
Jump to comment: Most recent
Comments
Comment #2
golddragon007 commentedComment #3
djdevinI don't think "not protected" is correct, is it?
I'm not able to access /quiz/1/results as anon. I have to be logged in and have access to edit the Quiz.
Comment #4
golddragon007 commentedIt is because you can't see the entities, but that does not mean the view itself is not rendered. You can put static text or any other text in the header/footer, which can be still rendered on the empty view.
No permission set: https://git.drupalcode.org/project/quiz/-/blob/8.x-6.x/config/install/vi...
Wrong permission set: https://git.drupalcode.org/project/quiz/-/blob/8.x-6.x/config/install/vi...
You can't see the results as anonymous because the results itself is protected by the entity's permission, but a protected view would give you a 403 error and it wouldn't be displayed to the user if he has no rights to access it. Also, it can happen that by mistake another module alters the entity permission wrongly and it will be rendered by the view. The general rule for me is that views always have to have permissions set as a second-line defence as it makes it harder to dump out something inappropriate.
Comment #5
djdevinSorry, I was referencing the wrong view. We can update the permissions.
Comment #6
smustgrave commentedComment #8
smustgrave commentedUpdated permissions.
Thanks all!