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

Hide link to user profile in comments block when linked user isn't enrolled

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Not a bug
    • 2.0.3, 2.1.4, 2.2.1
    • None
    • Comments

    Description

      Prerequisite:

      In the comments block, there are links to each commenting user's profile:
      http://MYMOODLEDOMAIN/user/view.php?id=USERID&course=COURSEID

      Now, if the commenting user isn't enrolled in the course because he has unenrolled in the meantime or because he had the capability to comment without enrolling (Admin, supervisor), the link to the profile will result in an error message "This profile is not available because this user is not enrolled in this course."

      Wouldn't it make sense to hide the link and show only the user name in this case?

      Attachments

        Issue Links

          Activity

            People

              phalacee Jason Fowler
              abias Alexander Bias
              Adrian Greeve Adrian Greeve
              Aparup Banerjee Aparup Banerjee
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: