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

tagged user image not linking to teachers profiles

    XMLWordPrintable

    Details

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

      Description

      When viewing a tag on tag/index.php, a section is displayed showing "Users tagged with 'blah'". The profile pictures are meant to link to the user's profile IF the current user is allowed to view it.

      However, the tag_print_user_box function will link the image to the tagged user's profile page only if the user has the moodle/user:viewdetails capability within that user's context.

      There is an exception within the user/view.php page will allows a user's profile to be seen if they are a teacher within any course: isteacherinanycourse($user->id)
      ie. all teacher profiles are browsable at a site level.

      So the fix would be to check for isteacherinanycourse($user->id) within the tag_print_user_box function in tag/locallib.php. I've attached a patch which does this.

      Thanks

        Attachments

          Activity

            People

            Assignee:
            scyrma Mathieu Petit-Clair
            Reporter:
            ashleyholman Ashley Holman
            Participants:
            Component watchers:
            Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: