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

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Not a bug
    • Affects Version/s: 2.0.3, 2.1.4, 2.2.1
    • Fix Version/s: None
    • Component/s: Comments
    • Labels:

      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

              Assignee:
              phalacee Jason Fowler
              Reporter:
              abias Alexander Bias
              Peer reviewer:
              Adrian Greeve Adrian Greeve
              Integrator:
              Aparup Banerjee Aparup Banerjee
              Participants:
              Component watchers:
              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: