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

Manager can not access another user's preferences

    Details

    • Testing Instructions:
      Hide
      1. Log in as a student and visit another student's profile page.
      2. Check that there is no 'Preferences' link.
      3. Log in as a manager and visit a student's profile page.
      4. Check that there is a 'Preferences' link.
      5. Click the link and view the preferences page.
      6. Make a note of the URL (copy it).
      7. Log in as a student and try to access the URL that you copied before.
      8. Ensure that there is an error message displayed saying that you don't have permission to view this page.
      9. Create a parent role (https://docs.moodle.org/29/en/Parent_role)
      10. Go to the appropriate student's profile page and check that there is a 'preferences' link.
      11. Go to the preferences page if you desire.
      Show
      Log in as a student and visit another student's profile page. Check that there is no 'Preferences' link. Log in as a manager and visit a student's profile page. Check that there is a 'Preferences' link. Click the link and view the preferences page. Make a note of the URL (copy it). Log in as a student and try to access the URL that you copied before. Ensure that there is an error message displayed saying that you don't have permission to view this page. Create a parent role ( https://docs.moodle.org/29/en/Parent_role ) Go to the appropriate student's profile page and check that there is a 'preferences' link. Go to the preferences page if you desire.
    • Affected Branches:
      MOODLE_29_STABLE
    • Fixed Branches:
      MOODLE_29_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      wip-MDL-50917-master
    • Sprint:
      Team Both Sprint 1

      Description

      The new Preference feature in 2.9 states: "The preferences of another user may be accessed from a link on their Profile page, for those who have access to it."

      The Manager role by default is set to allow viewdetails, viewalldetails, and editprofile. Yet as a Manager, when I access a user's full profile page, there is no "Preferences" link displayed in the Administration section. When I try to access the user's preferences page via a URL (e.g. http://demo.moodle.net/user/preferences.php?userid=##), I get error/moodle/cannotedituserpreferences

      I browsed through the whole list of capabilities to see what permission I could set to "allow" but there was nothing specific to editing user preferences.

      The issue is that the Manager can no longer assign role relative to user because this capability requires access to the Preferences page.

      Note the that Preferences link does display for the Administrator role when viewing another user's profile.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Votes:
                3 Vote for this issue
                Watchers:
                10 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  9/Nov/15