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

Messaging: Add admin setting for toggling site-wide messaging

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.6
    • Fix Version/s: 3.6
    • Component/s: Messages
    • Testing Instructions:
      Hide

      Note: I recommend to use MDK for this test. It's much easier.

      Testing scenario 1 - New installation

      1. Open a terminal
      2. Create a Moodle instance

        mdk create -t -i -n moodleinstancename

      3. Go to Site 'Administration | Advanced Features'
        • CONFIRM there is an 'Enable users to message anyone' setting and it's unchecked
        • CONFIRM the default value for it is 'False'

      Testing scenario 2 - Normal upgrade (with $CFG->messaging = true)

      1. Uninstall your Moodle instance

        mdk uninstall -y

      2. Check a weekly release before this patch:
        • master

          git checkout 6e2e63457efc2a5f2ef93d981c39a728f4470cb3

      3. Install the site:

        mdk install

      4. Check out the Moodle version we're testing:
      5. git checkout master

      6. Upgrade your site

        mdk upgrade

        • CONFIRM that the upgrade is a success and that you don't see any error messages
      7. Go to Site 'Administration | Advanced Features'
        • CONFIRM there is an 'Enable users to message anyone' setting and it's checked

       

      Testing scenario 3 - Normal upgrade (with $CFG->messaging = false)

      1. Uninstall your Moodle instance

        mdk uninstall -y

      2. Check a weekly release before this patch:
        • master

          git checkout 6e2e63457efc2a5f2ef93d981c39a728f4470cb3

      3. Install the site:

        mdk install

      4. Go to Site 'Administration | Advanced Features' and uncheck the 'Enable messaging' setting
      5. Check out the Moodle version we're testing:

        git checkout master

      6. Upgrade your site

        mdk upgrade

        • CONFIRM that the upgrade is a success and that you don't see any error messages
      7. Go to Site 'Administration | Advanced Features'
        • CONFIRM there is an 'Enable users to message anyone' setting and it's unchecked
      Show
      Note: I recommend to use MDK for this test. It's much easier. Testing scenario 1 - New installation Open a terminal Create a Moodle instance mdk create -t -i -n moodleinstancename Go to Site 'Administration | Advanced Features' CONFIRM there is an 'Enable users to message anyone' setting and it's unchecked CONFIRM the default value for it is 'False' Testing scenario 2 - Normal upgrade (with $CFG->messaging = true) Uninstall your Moodle instance mdk uninstall -y Check a weekly release before this patch: master git checkout 6e2e63457efc2a5f2ef93d981c39a728f4470cb3 Install the site: mdk install Check out the Moodle version we're testing: git checkout master Upgrade your site mdk upgrade CONFIRM  that the upgrade is a success and that you don't see any error messages Go to Site 'Administration | Advanced Features' CONFIRM there is an 'Enable users to message anyone' setting and it's checked   Testing scenario 3 - Normal upgrade (with $CFG->messaging = false) Uninstall your Moodle instance mdk uninstall -y Check a weekly release before this patch: master git checkout 6e2e63457efc2a5f2ef93d981c39a728f4470cb3 Install the site: mdk install Go to Site 'Administration | Advanced Features' and uncheck the 'Enable messaging' setting Check out the Moodle version we're testing: git checkout master Upgrade your site mdk upgrade CONFIRM  that the upgrade is a success and that you don't see any error messages Go to Site 'Administration | Advanced Features' CONFIRM there is an 'Enable users to message anyone' setting and it's unchecked
    • Affected Branches:
      MOODLE_36_STABLE
    • Fixed Branches:
      MOODLE_36_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-63279_master

      Description

      Add a new setting ($CFG->messagingallusers) to the existing message settings in advanced features. For new installations it should default to false; for existing instances, it will have the same value as $CFG.>messaging.

      This new privacy option will allow the users configure who can contact them. When $CFG->messagingallusers is enabled, a new option 'Anyone on this site' will appear; otherwise, users will be able to decide only between 'Only my contacts' or 'My contacts and anyone who shares a course with me'.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                1 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  3/Dec/18

                  Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 hour
                  1h