Skip to content

Commit

Permalink
MDL-64017 message_email: updated privacy provider
Browse files Browse the repository at this point in the history
  • Loading branch information
mdjnelson committed Apr 18, 2019
1 parent 97c85a0 commit 9bc1b8f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
9 changes: 9 additions & 0 deletions message/output/email/classes/privacy/provider.php
Expand Up @@ -51,6 +51,15 @@ class provider implements
* @return collection A listing of user data stored through this system.
*/
public static function get_metadata(collection $collection) : collection {
$messageemailmessages = [
'useridto' => 'privacy:metadata:message_email_messages:useridto',
'conversationid' => 'privacy:metadata:message_email_messages:conversationid',
'messageid' => 'privacy:metadata:message_email_messages:messageid',
];
// Note - this data gets deleted once the scheduled task runs.
$collection->add_database_table('message_email_messages',
$messageemailmessages, 'privacy:metadata:message_email_messages');

$collection->link_external_location('smtp', [
'recipient' => 'privacy:metadata:recipient',
'userfrom' => 'privacy:metadata:userfrom',
Expand Down
4 changes: 4 additions & 0 deletions message/output/email/lang/en/message_email.php
Expand Up @@ -31,6 +31,10 @@
$string['privacy:metadata:externalpurpose'] = 'This information is sent to an external SMTP server to be ultimately delivered as an email to the recipient.';
$string['privacy:metadata:fullmessage'] = 'The full message in a given format.';
$string['privacy:metadata:fullmessagehtml'] = 'The full version of the message.';
$string['privacy:metadata:message_email_messages'] = 'The list of users enrolled via an LTI provider';
$string['privacy:metadata:message_email_messages:conversationid'] = 'The id of the conversation being sent to';
$string['privacy:metadata:message_email_messages:messageid'] = 'The id of the message being sent';
$string['privacy:metadata:message_email_messages:useridto'] = 'The user receiving the message.';
$string['privacy:metadata:recipient'] = 'The recipient of the message.';
$string['privacy:metadata:replyto'] = 'The email address to reply to.';
$string['privacy:metadata:replytoname'] = 'Name of reply to recipient.';
Expand Down

0 comments on commit 9bc1b8f

Please sign in to comment.