I am trying to get ACL and Content Access module to work with the quiz module. I have the latest versions of ACL, Content Access and quiz with Drupal 5.

I can get it to limit access by user on a regular node (page, story, etc). But it will not on a quiz node, saying Access Denied no matter what I do, (or allowing everyone to see it). I think it has something to do with the way multi-questions are nodes that belong to the 'parent' quiz node. I do not want to have to go in and grant access to each question in the quiz. Anyone else try to get this to work? I have tried everything and am out of ideas. Thanks!

Comments

salvis’s picture

Start by installing devel_node_access and enabling its debug mode.

sunsetco’s picture

I am trying to accomplish the same thing. Did you get anything figured out?

salvis’s picture

I think it has something to do with the way multi-questions are nodes that belong to the 'parent' quiz node. I do not want to have to go in and grant access to each question in the quiz.

When (if) the Quiz authors decided to use nodes for questions, they bought all the benefits and burdens of using nodes. One of them is node access working on each and every node. However, the module that defines the node type can override node access through hook_access(). For example, it could check the accessibility of the quiz node and enable access to the question nodes based on the result.

You'll have to move this over to the Quiz queue as a feature request...

keyone’s picture

I did come up with a hack for this. Are you still interested?

salvis’s picture

Project: ACL » Quiz
Version: 5.x-1.6 » 5.x-2.x-dev
Component: Miscellaneous » Code
Category: support » feature

Yes, sure, let's see it.

SeanLiu’s picture

Hi,
I'm getting the same problem,but in Drupal 6.10,content_access-6.x-1.0,acl-6.x-1.0-beta4.
Can you please share your hack?
Thanks

duaelfr’s picture

Component: Code » Code - Import/Export
Status: Active » Closed (won't fix)

This version of Quiz is not supported anymore. The issue is closed for this reason.
Please upgrade to a supported version and feel free to reopen the issue on the new version if applicable.

This issue has been automagically closed by a script.