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

Participants page shows roles at course level mixed with roles assigned at higher levels.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 3.4
    • Fix Version/s: 3.4
    • Component/s: User management
    • Labels:
    • Testing Instructions:
      Hide
      1. Assign a user as a manager at the site level.
      2. Create a course.
      3. Assign the user as a student in the course.
      4. Visit the course.
      5. View the participants page.
      6. Check that you can see the user is a 'Student' and a 'Manager'.
      7. Click to edit this column.
      8. Confirm you can only remove the 'Student' role.
      9. Check that you can not choose the manager role from the list.
      10. Choose two more roles and save.
      11. Confirm the table updated with the new roles as well as 'Manager'.
      12. Click to edit the roles again.
      13. Confirm you can not remove the 'Manager role'.
      14. Remove the other roles.
      15. Save.
      16. Confirm he table updated and the user is just listed as a manager.
      17. Enrol another user in the course as a student.
      18. Edit their role and check you can add them as a manager.
      19. Save.
      20. Confirm the table updated.
      21. Edit their role again and confirm you can remove them as a manager.
      22. Save.
      23. Confirm the table updated.
      24. Play around a bit more and try and break it.
      Show
      Assign a user as a manager at the site level. Create a course. Assign the user as a student in the course. Visit the course. View the participants page. Check that you can see the user is a 'Student' and a 'Manager'. Click to edit this column. Confirm you can only remove the 'Student' role. Check that you can not choose the manager role from the list. Choose two more roles and save. Confirm the table updated with the new roles as well as 'Manager'. Click to edit the roles again. Confirm you can not remove the 'Manager role'. Remove the other roles. Save. Confirm he table updated and the user is just listed as a manager. Enrol another user in the course as a student. Edit their role and check you can add them as a manager. Save. Confirm the table updated. Edit their role again and confirm you can remove them as a manager. Save. Confirm the table updated. Play around a bit more and try and break it.
    • Affected Branches:
      MOODLE_34_STABLE
    • Fixed Branches:
      MOODLE_34_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-59830_master-v2

      Description

      When editing course roles - it should not display roles assigned at higher contexts.

      Example from Marina - I had a user with "Manager" role in the system context and I enrolled him as a "Student" in a course. It shows to me as he has both "Manager" and "Student" roles. On 3.3 I can not remove the "Manager" role but on master I can, it actually shows as if it was saved but when I reload the page the role "Manager" is displayed again. This behavior is a little different from #11 and scared me at first

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              markn Mark Nelson
              Reporter:
              damyon Damyon Wiese
              Peer reviewer:
              Damyon Wiese
              Integrator:
              Jun Pataleta
              Tester:
              Marina Glancy
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                13/Nov/17