Issue Details (XML | Word | Printable)

Key: MDL-14676
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Jamie Pratt
Reporter: Joseph Rézeau
Votes: 1
Watchers: 2
Operations

Add/Edit UI Mockup to this issue
If you were logged in you would be able to see more operations.
Moodle

In question bank, problem with moodle/question:edit* when do not have moodle/question:move*

Created: 03/May/08 08:15 PM   Updated: 08/Oct/08 07:49 PM
Return to search
Component/s: Questions, Roles
Affects Version/s: 1.9
Fix Version/s: 1.9.3

Issue Links:
Duplicate
 

Participants: Jamie Pratt, John Isner, Joseph Rézeau, Pierre Pichet and Tim Hunt
Security Level: None
Resolved date: 08/Oct/08
Affected Branches: MOODLE_19_STABLE
Fixed Branches: MOODLE_19_STABLE


 Description  « Hide
Using moodle 1.9.

1- As Admin,
a. create a new role called CanCreateSystemQuestions with Allowed permissions: moodle/question:add; moodle/question:editmine.
b. create a new role called CanUseSystemQuestions with Allowed permission: moodle/question:useall
Assign these 2 roles to all teachers on your moodle site.

2- Log in as teacher A
a. create question "Question A" in System default and save it.
b. try to edit "Question A" : you can click the Edit icon, you see the Edit question screen which says:
You have permission to :
    * Edit this question
    * Save this as a new question
Edit your question and click on the Save changes to save it in the same (System) category. You see an error message:
Sorry, but you do not currently have permissions to do that (move).

There seems to be a contradiction of "permissions" somewhere...

Joseph

PS.-- Clicking on the "More information about this error link" takes me to the http://docs.moodle.org/en/error/moodle/nopermissions page which informs me that "If you believe that your roles for that user DO allow that action you were attempting, then you may have found a bug. Congratulations!" Hence this bug report...

 All   Comments   Change History   Version Control      Sort Order: Ascending order - Click to sort in descending order
Jamie Pratt committed 4 files to 'Moodle CVS' on branch 'MOODLE_19_STABLE' - 08/Oct/08 06:19 PM
MDL-14676 "In question bank, problem with moodle/question:edit* when do not have moodle/question:move*" Fixed logic for processing submission of question form and also added some validation to check that the user has permissions to move a question.
MODIFY lang/en_utf8/question.php   Rev. 1.7.2.8    (+2 -1 lines)
MODIFY question/type/edit_question_form.php   Rev. 1.15.2.1    (+11 -0 lines)
MODIFY question/type/random/edit_random_form.php   Rev. 1.6.2.1    (+5 -1 lines)
MODIFY question/type/questiontype.php   Rev. 1.74.2.13    (+5 -4 lines)
Jamie Pratt committed 4 files to 'Moodle CVS' - 08/Oct/08 06:27 PM
MDL-14676 "In question bank, problem with moodle/question:edit* when do not have moodle/question:move*" Fixed logic for processing submission of question form and also added some validation to check that the user has permissions to move a question.
MODIFY question/type/edit_question_form.php   Rev. 1.21    (+11 -0 lines)
MODIFY lang/en_utf8/question.php   Rev. 1.29    (+2 -1 lines)
MODIFY question/type/questiontype.php   Rev. 1.105    (+5 -4 lines)
MODIFY question/type/random/edit_random_form.php   Rev. 1.7    (+5 -1 lines)
Mitsuhiro Yoshida committed 8 files to 'Lang CVS' - 09/Oct/08 01:29 PM
MDL-16267 Adding translated help files for message.
MDL-14676 Translated a new string for question.
MDL-15887 Translated new strings for grade percentage.
MDL-15887 Adding a translated help file grade percentage.
MDL-15262 Translated new strings for role.
MDL-15402 Translated new strings for repository.
MODIFY ja_utf8/grades.php   Rev. 1.140    (+38 -36 lines)
MODIFY ja_utf8/repository.php   Rev. 1.29    (+3 -1 lines)
MODIFY ja_utf8/README   Rev. 1.836    (+1 -1 lines)
ADD ja_utf8/help/grade/showpercentage.html   Rev. 1.1    (+0 -0 lines)
MODIFY ja_utf8/role.php   Rev. 1.72    (+4 -1 lines)
ADD ja_utf8/help/message/moodle_notices.html   Rev. 1.1    (+0 -0 lines)
MODIFY ja_utf8/question.php   Rev. 1.30    (+3 -2 lines)
ADD ja_utf8/help/message/moodle_errors.html   Rev. 1.1    (+0 -0 lines)
martignoni committed 1 file to 'Lang CVS' - 15/Oct/08 03:51 AM
MDL-14676 string added
MODIFY fr_utf8/question.php   Rev. 1.37    (+2 -1 lines)