multichoice.module comes with two access/perm : 'create multichoice' and 'edit own multichoice'. perfect.
multimatch.module and any other module that will be part of "quiz" (as quiz question type) will add similar access_hook.. Here is my thought : why not have a common 'create %quiz question' and 'edit own %quiz question' for all ? Then when the site admister give someone the "create a quiz question" privilege, he/she can create multichoice, multimatch, etc ; and the administrator don't have to deal with million of settings... of course, each sub-module should be able to add extra perms if needed...

Is it possible ? (i think it is, but don't have a clear idea how to do it) What do you think of that ?

Comments

seanbfuller’s picture

This was something I thought of too and I kept going back and forth on it the more I thought about it. On one hand, I like being able to hide certain functionality from users based on role. On the other hand, if there were a lot of question types, I can see where it would get tedious pretty quick. The kind of simplification you suggest takes care of the kind of configuration mistake where you gave someone access to create quizzes, but did not give them access to create questions. Having dealt with a number of large sites with numerous roles and permissions, I know I personally make that kind of mistake all too often. Still, it seems a shame to drop that level of granularity. Part of me thinks we can leave it the way it is for now, and address this again once we have more question types. This also fits into this issue: http://drupal.org/node/26998

add1sun’s picture

Status: Active » Closed (duplicate)

marking as a duplicate of http://drupal.org/node/26998 to consolidate the discussion.