Browse Source

Merge pull request #16556 from nextcloud/feature/16554_adminAuditShareByMail/wiswedel

log email shares in admin_audit log
tags/v17.0.0beta1
Morris Jobke 4 years ago
parent
commit
4986241873
No account linked to committer's email address
1 changed files with 25 additions and 0 deletions
  1. 25
    0
      apps/admin_audit/lib/Actions/Sharing.php

+ 25
- 0
apps/admin_audit/lib/Actions/Sharing.php View File

@@ -91,6 +91,19 @@ class Sharing extends Action {
'id',
]
);
} elseif($params['shareType'] === Share::SHARE_TYPE_EMAIL) {
$this->log(
'The %s "%s" with ID "%s" has been shared to the email recipient "%s" with permissions "%s" (Share ID: %s)',
$params,
[
'itemType',
'itemTarget',
'itemSource',
'shareWith',
'permissions',
'id',
]
);
}
}

@@ -147,6 +160,18 @@ class Sharing extends Action {
'id',
]
);
} elseif($params['shareType'] === Share::SHARE_TYPE_EMAIL) {
$this->log(
'The %s "%s" with ID "%s" has been unshared from the email recipient "%s" (Share ID: %s)',
$params,
[
'itemType',
'fileTarget',
'itemSource',
'shareWith',
'id',
]
);
}
}


Loading…
Cancel
Save