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

Refine user preference pages to reflect actual permissions

    XMLWordPrintable

    Details

    • Affected Branches:
      MOODLE_30_STABLE, MOODLE_31_STABLE

      Description

      The problem I'm trying to solve is to allow users to change their text editor preferences without giving full edit profile permissions, but I don't think this is limited to just the text editor preferences.

      The /user/editor.php preferences page checks the useredit_setup_preference_page function which blocks anyone who doesn't have either moodle/user:editownprofile or moodle/user:editprofile capabilities. This should really, I feel, be a sum of the capabilities for the preferences on that page, or perhaps a capability to access the page, as in the message preference page (/message/edit.php).

      I would then like to be able to have capabilities for each preference that is checked in /lib/naviagtionlib.php instead of the general editownprofile. e.g. moodle/user:manageowneditor

      Now that we have individual user preference pages for groups of preferences we should have capabilities that reflect that and leave the editprofile capability to manage user information only.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            msharp Mark Sharp
            Participants:
            Component watchers:
            Andrew Lyons, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Andrew Lyons, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated: