Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Won't Fix
-
Affects Version/s: 1.9.5, 1.9.6
-
Fix Version/s: None
-
Component/s: Gradebook
-
Labels:None
-
Affected Branches:MOODLE_19_STABLE
Description
A user with moodle/course:managescales at course level but not at system level is able to create standard scales, ie. a teacher in a course. He/she ends not being able of deleting or editing the scale.
This behavior has been observed in 1.9.5 and 1.9.6. Not tested in 2.x or 1.8.x.
To reproduce:
1. Login (or impersonate) an editing teacher in a course (assuming it has not moodle/course:managescales ar system context)
2. *Create* a scale in this course (Grades -> Scales -> View -> Add a new scale). You can't create a standard scale... that's ok
3. *Edit* the scale that has been just created. Check the 'standard' checkbox.
You have created a standard scale. The teacher losses control of this scale not being able to edit or delete it again.
The attached patch seems to solve the problem.
Thanks in advance.
This is a duplicated bug report. See
MDL-19395MDL-19395