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

Link to Participants changes to site id if user cannot view for current course

XMLWordPrintable

    • MOODLE_400_STABLE, MOODLE_401_STABLE, MOODLE_402_STABLE
    • MOODLE_402_STABLE, MOODLE_403_STABLE
    • MDL-78457-403
    • Hide
      1. Log in as admin
      2. Navigate to Users > Permissions > Define roles from site administration
      3. Edit the Authenticated user role
        • Allow the moodle/site:viewparticipants capability
      4. Edit the Student role
        • Do not allow the moodle/course:viewparticipants capability
      5. Create a user
      6. Create a course
      7. Enrol user as student in course
      8. Log out
      9. Log in as test user
      10. Navigate to course
      11. Confirm there is no Participants link in course navigation
      Show
      Log in as admin Navigate to Users > Permissions > Define roles from site administration Edit the Authenticated user role Allow the moodle/site:viewparticipants capability Edit the Student role Do not allow the moodle/course:viewparticipants capability Create a user Create a course Enrol user as student in course Log out Log in as test user Navigate to course Confirm there is no Participants link in course navigation

      It appears that the Participants page when using Switch Role to changes and displays to site id 1 instead of the course id number.

       

      Using theme_boost

      1. As admin, go to site administration / users / permissions / define roles

      2. Click the cog/edit for Student role

      3. Set View participantsmoodle/site:viewparticipants = Prohibit

      4. Set View participantsmoodle/course:viewparticipants = Prohibit

      5. Create a course, say the url of the course is http://localhost/vanilla/course/view.php?id=3.

      6. As admin, click Participants. It will redirect you to http://localhost/vanilla/user/index.php?id=3

      7. Go back to course page.

      8. Click your profile and click "Switch role to"

      9. Select student.

      10. Go back to course page, click Participants.

      RESULT: It redirects you to http://localhost/vanilla/user/index.php?id=1 which contains all the site-wide users.

            pholden Paul Holden
            jebarvia Joshua Ebarvia
            Carlos Escobedo Carlos Escobedo
            Sara Arjona (@sarjona) Sara Arjona (@sarjona)
            Amaia Anabitarte Amaia Anabitarte
            Votes:
            1 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour, 20 minutes
                1h 20m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.