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

Only show profile roles to students

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.4
    • Fix Version/s: 3.4
    • Component/s: User management
    • Labels:
    • Testing Instructions:
      Hide

      Using default roles, create a new course.

      Assign 3 users as student, 2 as teacher and 2 as manager.

      Login as the manager, verify you can filter by "Manager, Teacher, Non-editing Teacher or Student" roles. 

      Verify you see the all the roles that are assigned to participants correctly.

      Login as a student.

      Verify you can only filter by Student, Teacher roles (but not Non-editing Teacher because no one has that role).

      Log in as admin

      Assign someone in the course the non-editing teacher role

      Log back in as a student

      Verify you can now filter by the non-editing teacher role

      Verify you only see the same set of roles where they are assigned to participants (you should not see the role of managers in the course). 

      Show
      Using default roles, create a new course. Assign 3 users as student, 2 as teacher and 2 as manager. Login as the manager, verify you can filter by "Manager, Teacher, Non-editing Teacher or Student" roles.  Verify you see the all the roles that are assigned to participants correctly. Login as a student. Verify you can only filter by Student, Teacher roles (but not Non-editing Teacher because no one has that role). Log in as admin Assign someone in the course the non-editing teacher role Log back in as a student Verify you can now filter by the non-editing teacher role Verify you only see the same set of roles where they are assigned to participants (you should not see the role of managers in the course). 
    • Affected Branches:
      MOODLE_34_STABLE
    • Fixed Branches:
      MOODLE_34_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-59801-master

      Description

      In the participants page, students should only see the courseprofileroles.

      This is part of merging the participants and enrolments pages.

       

      the fix will go in user/classes/output/user_roles_editable.php when calculating the display value and editing is not allowed.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              damyon Damyon Wiese
              Reporter:
              damyon Damyon Wiese
              Peer reviewer:
              Neill Magill
              Integrator:
              Eloy Lafuente (stronk7)
              Tester:
              Ryan Wyllie
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
              Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

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