Closed (fixed)
Project:
Quiz
Version:
6.x-4.x-dev
Component:
Code - Quiz module
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
24 Nov 2009 at 21:09 UTC
Updated:
5 Jan 2010 at 15:35 UTC
One of my users reported that there was no "Title:" field when they were editing questions. I found in quiz_question.core.inc that the editing field for that value is omitted if !user_access('allow user titles'). But, that permission was never declared in hook_perm() (of quiz.module). Since it is described in quiz.help.inc, I figured it was meant to be declared in hook_perm() and added it. I also made it so people with "adminster quiz" permission can edit the title, whether they have the title editing permission explicitly or not.
// Allow user to set title?
if (user_access('allow user titles') || user_access('administer quiz')) {
Comments
Comment #1
falcon commentedIt seems to work just fine
Comment #2
falcon commented