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

Permissions over-rides for the online users block in user page contexts do not seem to be working as expected

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Deferred
    • Icon: Critical Critical
    • None
    • 2.1.8, 2.2.5, 2.3.1
    • Blocks
    • MOODLE_21_STABLE, MOODLE_22_STABLE, MOODLE_23_STABLE
    • Hide
      1. Log in as an administrator.
      2. Create a student if you do not have one for your site.
      3. Create a course and enrol a student to this course.
      4. Add the 'Online users' block.
      5. Click on 'Assign roles'.
      6. Click on 'Permissions' under the block settings.
      7. Remove all the permissions that are there.
      8. Add the 'Authenticated user on front page' and 'Authenticated user' to the 'Prohibited' column for all capabilities on that page.
      9. Click on 'Check permissions'.
      10. Select the student and click 'Show this user's permissions'.
      11. Confirm they are all set to 'No'.
      12. Repeat steps 4-11 for the My Moodle page and the user profile page.
      13. Log in as a student.
      14. Visit the course, My Moodle page and user profile page and ensure you can not see/add this block (the My Moodle page and user profile page are customisable by the user).
      Show
      Log in as an administrator. Create a student if you do not have one for your site. Create a course and enrol a student to this course. Add the 'Online users' block. Click on 'Assign roles'. Click on 'Permissions' under the block settings. Remove all the permissions that are there. Add the 'Authenticated user on front page' and 'Authenticated user' to the 'Prohibited' column for all capabilities on that page. Click on 'Check permissions'. Select the student and click 'Show this user's permissions'. Confirm they are all set to 'No'. Repeat steps 4-11 for the My Moodle page and the user profile page. Log in as a student. Visit the course, My Moodle page and user profile page and ensure you can not see/add this block (the My Moodle page and user profile page are customisable by the user).

      I am currently not able to make the online users block invisible on user context pages such as the user profile or the My Moodle/My home pages.

      I've tried several different approaches to tweaking the visibility of information in this block. Please see the attached for details. The long and the short of it is that I can't turn it off in that context without shutting it off for the entire site and I can't make it invisible by role.

            markn Mark Nelson
            lsmith Lesli Smith
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

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