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

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.8
    • 1.8.3, 1.9
    • Language
    • None
    • MOODLE_18_STABLE
    • 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

            howardsmiller Howard Miller
            dulcimer Charles Kelly
            Nobody Nobody
            David Woloszyn, Huong Nguyen, Jake Dallimore, Michael Hawkins, Stevani Andolo
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              11/Oct/07