MDL-63214 message: Add privacy preferences to filter who can message
authorSara Arjona <sara@moodle.com>
Wed, 5 Sep 2018 13:04:35 +0000 (15:04 +0200)
committerSara Arjona <sara@moodle.com>
Wed, 17 Oct 2018 09:52:57 +0000 (11:52 +0200)
commitf7dfa9ba3ef921f5cfee16e9e80bf797eb86f955
tree608409f1bb9fe14a536c656f87cc10c370a413ed
parent327914160ffb82a5d57292af2140c3055db12c06
MDL-63214 message: Add privacy preferences to filter who can message

Add new messaging profile preferences to allow users to choose who
can message them:
- By default, users can select between 'My contacts only' and 'My
contacts and anyone in my courses'
- When $CFG->messagingallusers is enabled, a new option is displayed
also: 'Anyone on the site'. For users who have selected this option,
if $CFG->messagingallusers is disabled, the behaviour will be changed
to 'My contacts and anyone in my courses'
21 files changed:
lang/en/deprecated.txt
lang/en/message.php
lib/db/upgrade.php
message/amd/build/message_preferences.min.js
message/amd/src/message_preferences.js
message/classes/api.php
message/externallib.php
message/lib.php
message/output/popup/tests/behat/message_popover_unread.feature
message/renderer.php
message/templates/message_preferences.mustache
message/tests/api_test.php
message/tests/behat/delete_all_messages.feature
message/tests/behat/delete_messages.feature
message/tests/behat/reply_message.feature
message/tests/behat/search_messages.feature
message/tests/behat/view_messages.feature
message/tests/externallib_test.php
message/tests/privacy_provider_test.php
message/upgrade.txt
user/tests/behat/delete_users.feature