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

Import content also imports user permissions

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.3.6
    • Fix Version/s: None
    • Component/s: Roles / Access
    • Labels:
    • Affected Branches:
      MOODLE_33_STABLE

      Description

      When teacher imports part of course from their previous course Moodle also import user permissions without noticing teacher. It is bug and needs to be resolved right away.

      Steps to reproduce:

      1. Prepare three users: the Good, the Bad and the Ugly.
      2. Prepare two courses - A and B.
      3. Make the Ugly a teacher in both courses.
      4. Make the Good a non-editing teacher in the course A.
      5. Make the Bad a non-editing teacher in the course B.
      6. Log in as the Ugly teacher.
      7. In the course A, override permissions for role 'Non-editing teacher' and give it for example the capability to enrol users ("enrol/manual:enrol") - because the Ugly teacher trusts the Good assistant and wants them to help with the course management.
      8. Add a resource (such as a page) in the course A.
      9. Go to the course B.
      10. Import the resource from A to B.
      11. Log in as the Bad non-editing teacher.
      • Expected result: the Bad non-editing teacher should not be able to enrol users in the course B.
      • Actual behaviour: the Bad non-editing teacher can enrol users (or whatever the Good one was given in the original course).

        Attachments

          Activity

            People

            • Votes:
              4 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated: