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

tabs.php should test moodle/user:editownprofile in User context not System context

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: 1.9
    • Fix Version/s: None
    • Component/s: Roles / Access
    • Labels:
      None
    • Affected Branches:
      MOODLE_19_STABLE

      Description

      At around line 120 of user/tabs.h, there is a test to determine if the user can edit his own profile.

      The test requires

      has_capability('moodle/user:editownprofile',$systemcontext)

      but it should require

      has_capability('moodle/user:editownprofile',$personalcontext).

      If this is a bug, please check other capability tests in tabs.php to see if they make the same error.

        Attachments

          Activity

            People

            Assignee:
            moodle.com moodle.com
            Reporter:
            jisner John Isner
            Participants:
            Component watchers:
            Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: