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

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

      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?

            phalacee Jason Fowler
            abias Alexander Bias
            Adrian Greeve Adrian Greeve
            Aparup Banerjee Aparup Banerjee
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.