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

Site-level users with grading capability receive Assignment emails

    Details

    • Testing Instructions:
      Hide

      1. Create User A with a valid email address and assign the Manager system role.
      2. Create User B with a valid email address. Do not assign a system role.
      3. Create User C. Do not assign a system role.
      4. Create a course and enrol User B as a teacher and User C as a student.
      3. Create an assignment. Make sure "Email alerts to teachers" is set to Yes.
      4. As User C, submit an assignment.
      5. Verify that User A does not receive an email notification.
      6. Verify that User B receives an email notification.

      Show
      1. Create User A with a valid email address and assign the Manager system role. 2. Create User B with a valid email address. Do not assign a system role. 3. Create User C. Do not assign a system role. 4. Create a course and enrol User B as a teacher and User C as a student. 3. Create an assignment. Make sure "Email alerts to teachers" is set to Yes. 4. As User C, submit an assignment. 5. Verify that User A does not receive an email notification. 6. Verify that User B receives an email notification.
    • Affected Branches:
      MOODLE_19_STABLE, MOODLE_20_STABLE, MOODLE_21_STABLE, MOODLE_22_STABLE, MOODLE_23_STABLE
    • Fixed Branches:
      MOODLE_21_STABLE, MOODLE_22_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-19263-master

      Description

      We have a custom role for our User Support Center that is similar to administrator, but lacks most of the system-wide privileges. These users need to be able to behave like teachers in any course without actually being enrolled in courses.

      However, these users are considered members of the course for certain instances (choices, groups/groupings, participants lists, locally assigned roles for activities, and the recent activity block). The User Support Center role is a hidden assignment to minimize these appearances.

      Whether or not the role assignment is hidden, when a teacher enables "Send e-mail notifications to teachers" in an assignment, anyone with the User Support Center role (and any other site-level course:view role) receives notification e-mails.

      The only thing remotely like a fix that we've found is to disable the e-mail address of anyone with a User Support Center role, but we would like to enroll these users in a course and have them receive e-mails.

      These site-level users do not receive other types of email from within the course (e.g. Forum posts).

      EDITED: We did further testing and discovered that this issue is not limited to hidden role assignments after all. It is true for all site-level users with the capability to grade assignments.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Votes:
                  18 Vote for this issue
                  Watchers:
                  17 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Fix Release Date:
                    14/May/12