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

Admins should be able to see all custom profile fields

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.9.3
    • Fix Version/s: 1.9.4
    • Component/s: General
    • Labels:
      None
    • Environment:
      Any
    • Database:
      Any
    • Difficulty:
      Easy
    • Affected Branches:
      MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE

      Description

      Admins should be able to see all user custom profile fields. If a custom profile field is marked as PROFILE_VISIBLE_PRIVATE, it should be visible to the user but also to admins who have moodle/user:update. Note: Admins can edit the fields but not see them without going into edit.

      Fix:-
      in user/profile/lib.php CHANGE:
      case PROFILE_VISIBLE_PRIVATE:
      return ($this->userid == $USER->id);
      TO:
      case PROFILE_VISIBLE_PRIVATE:
      if ($this->userid == $USER->id) return true;
      // Fall through to default which checks moodle/user:update

      Alan.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  28/Jan/09