Closed (fixed)
Project:
Question
Version:
6.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Created:
15 Jul 2009 at 05:03 UTC
Updated:
3 Jan 2014 at 00:29 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
tanoshimi commentedIt looks like question_access is checking the wrong permission. Currently, permission to create a question node is granted to users with "ask questions" permission, but the question node is really the question and answer combined, which should therefore only be given to users with the "manage questions" permission.
Permission to create questions (i.e. to add a new row to the question_queue table) is controlled by the "ask questions" combined with the value of the question_require_registered variable in question_qform().
Attached patch should correct this.
Comment #2
tanoshimi commentedchanging status
Comment #3
tanoshimi commentedThis patch passes the tests created in http://drupal.org/node/758638, so I'm going to mark it as Ready To Be Committed.
As soon as my cvs access is sorted out, I'll commit both the patch and the test!
Comment #4
tanoshimi commentedCommitted to 6.x-1.x-dev branch.