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

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.9.3
    • 1.6.9, 1.7.7, 1.8.8, 1.9.4
    • Administration
    • None
    • MOODLE_19_STABLE
    • MOODLE_16_STABLE, MOODLE_17_STABLE, MOODLE_18_STABLE, MOODLE_19_STABLE
    • Easy

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              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

              Dates

                Created:
                Updated:
                Resolved:
                28/Jan/09