Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-9935

"Create and manage roles" capability not working

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Not a bug
    • Affects Version/s: 1.8
    • Fix Version/s: None
    • Component/s: Roles / Access
    • Labels:
      None
    • Affected Branches:
      MOODLE_18_STABLE

      Description

      One would expect that a user with permission to 'Create and manage roles' should be able to create a new role. For example, if a teacher is given such permission in a course context, the teacher should see a 'Define roles' link in the course administration block. However this is not the case. At best, teachers can Assign roles' and 'Override roles,' but not define new ones.

      This presents a problem when a teacher wishes to give a specific permission to a specific student. The only way to do this currently is for the teacher to (1) ask the administrator to create a new copy of the Student role (2) modify the copied role by adding the specific permission and (3) assign the modified role to the specific student. This procedure clearly does not scale because the teacher will need a separate copy of the Student role for every special situation. It is also a problem that such roles are globally visible. If another teacher modifies such a role, the Student will inadvertently gain or lose privileges.

      If the teacher could truly 'Create and manage roles,' the teacher would be able to handle special situations like these without help from the administrator. Such roles should be visible only to the teacher who created them.

      NOTE: This seems like such a huge hole in the roles system that I'm wondering if I missed something. I have posted to the Roles and Capabilities forum, but have not gotten adequate answers. The forum is surprisingly quiet, considering the impact of this major new feature. Even more surprising, there are no developers taking part in the forum.

        Attachments

          Activity

            People

            Assignee:
            lazyfish Yu Zhang
            Reporter:
            jisner John Isner
            Tester:
            Nobody Nobody
            Participants:
            Component watchers:
            Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: