as of 5.x-1.4, this module does a very poor job implementing any permissioning of the functions it implements. the attached patch adds some nuance to this, creating a second permission ("ask questions") which allows users to create new question nodes, to go alongside "manage questions" which allows users to answer and update them.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | question.317412.patch | 1.15 KB | spiderman |
| question.permissions-fix.patch | 1.07 KB | spiderman |
Comments
Comment #1
nancydruI recently ran into problems with hook_access, so I recommend you go back and look at http://api.drupal.org/api/group/node_access/6. It is probably wrong to do something like "return user_access('ask questions');" for "op=update". That code could return false, denying access that might have been granted by an access control module. Other than "op=create," hook_access probably should not return false.
Comment #2
spidermanThanks for the clarification- I hadn't realized this subtle distinction of hook_access. Attached is a freshly rolled patch which returns NULL in case the user doesn't have permissions, to allow the node_access table to remain in play.
Comment #3
codepoet commentedThis is in -dev. Working on a final 5.x version before the 6.x version.
Comment #4
codepoet commentedTagged 1.5 with this. Last 5.x version if all goes well.
Comment #5
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.