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

/user/view.php - I'd suggest allowing this to be defined in the Language Packs: "You can not view the profile of this user'"

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.8
    • Fix Version/s: 1.8.3, 1.9
    • Component/s: Language
    • Labels:
      None
    • Affected Branches:
      MOODLE_18_STABLE
    • Fixed Branches:
      MOODLE_18_STABLE, MOODLE_19_STABLE

      Description

      Looking at the "/user/view.php" file in the latest 1.8+ (April 14, 2007), I noticed that you have an English error message hard-corded into the file.

      I would suggest making this into a $string that can be handled by the language packs.
      "You can not view the profile of this user"

      // make sure user can view this student's profile
      if ($USER->id != $user->id
      && !has_capability('moodle/user:viewdetails', $coursecontext)
      && !has_capability('moodle/user:viewdetails', $usercontext))

      { error('You can not view the profile of this user'); }

        Attachments

          Activity

            People

            • Assignee:
              howardsmiller Howard Miller
              Reporter:
              dulcimer Charles Kelly
              Tester:
              Nobody
              Participants:
              Component watchers:
              cameron1729, David Mudrák (@mudrd8mz), Helen Foster
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                11/Oct/07