Moodle

Teachers are able to create standard scales without moodle/course:managescales at SYSTEM context

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor 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.

Activity

Hide
Yolanda Ordoñez Rufat added a comment -

This is a duplicated bug report. See MDL-19395

Show
Yolanda Ordoñez Rufat added a comment - This is a duplicated bug report. See MDL-19395
Hide
Juan Segarra Montesinos added a comment -

Ooopps Yes it is...

Someone should close this...

Show
Juan Segarra Montesinos added a comment - Ooopps Yes it is... Someone should close this...
Hide
Heiko Schach added a comment -

Resolved in MDL-24682

Show
Heiko Schach added a comment - Resolved in MDL-24682
Hide
Michael de Raadt added a comment -

Thanks for reporting this issue.

We have detected that this issue has been inactive for over a year has been recorded as affecting versions that are no longer supported.

If you believe that this issue is still relevant to current versions (2.1 and beyond), please comment on the issue. Issues left inactive for a further month will be closed.

Michael d;

lqjjLKA0p6

Show
Michael de Raadt added a comment - Thanks for reporting this issue. We have detected that this issue has been inactive for over a year has been recorded as affecting versions that are no longer supported. If you believe that this issue is still relevant to current versions (2.1 and beyond), please comment on the issue. Issues left inactive for a further month will be closed. Michael d; lqjjLKA0p6
Hide
Michael de Raadt added a comment -

I'm closing this issue as it appears to have become inactive and is probably not relevant to a current supported version. If you are encountering this problem or one similar, please launch a new issue.

Show
Michael de Raadt added a comment - I'm closing this issue as it appears to have become inactive and is probably not relevant to a current supported version. If you are encountering this problem or one similar, please launch a new issue.

Dates

  • Created:
    Updated:
    Resolved: