Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-17107 Preventing spam in user profile descriptions
  3. MDL-17143

Don't display the user description at all when user isn't enrolled in any courses

XMLWordPrintable

    • MOODLE_19_STABLE
    • MOODLE_16_STABLE, MOODLE_17_STABLE, MOODLE_18_STABLE, MOODLE_19_STABLE
    • Easy

      1. Add a new config variable profilesforenrolledusersonly = true (by default)

      2. When showing the profile page, if a courseid isn't defined (this is the public view) AND the user is not enrolled in any courses AND profilesforenrolledusersonly = true then replace the profile description with something like "This profile description will not be shown until this person is enrolled in at least one course".

      3. When editing the profile page, if the description is blank AND the user is not enrolled in any courses AND profilesforenrolledusersonly = true then completely hide the description field from the editing page.

            dongsheng Dongsheng Cai
            dougiamas Martin Dougiamas
            Jérôme Mouneyrac Jérôme Mouneyrac
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

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