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

Users forum posts are public

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 1.7, 1.7.1, 1.7.2, 1.8
    • Fix Version/s: 1.8.1
    • Component/s: Forum
    • Labels:
      None
    • Affected Branches:
      MOODLE_17_STABLE, MOODLE_18_STABLE
    • Fixed Branches:
      MOODLE_18_STABLE

      Description

      Probably a typo.

      In /moodle/mod/forum/user.php the $CFG->forceloginforprofiles setting is not checked rightly.

      73 if ($course->id == SITEID) {
      74 if (!empty($CFG->forceloginforprofiles) || isloggedin())

      { 75 // Search throughout the whole site. 76 $searchcourse = 0; 77 }

      else

      { 78 $searchcourse = SITEID; 79 }

      80 } else {

      If forceloginforprofiles is set to yes everyone can see my post/discussions throughout the whole site ?!?!?

      Removing ! before empty($CFG->forceloginforprofiles) seems to resolve the problem.

      Cheers

        Attachments

          Activity

            People

            • Assignee:
              nicolasconnault Nicolas Connault
              Reporter:
              upo Roberto Pinna
              Tester:
              Nobody
              Participants:
              Component watchers:
              Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                11/Jun/07