summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorSascha Wiswedel <wiswedel@users.noreply.github.com>2019-07-26 13:37:22 +0200
committerSascha Wiswedel <sascha.wiswedel@nextcloud.com>2019-07-26 14:37:50 +0200
commite98b2cb46138a786b1f21e93b7cee77272834491 (patch)
tree91021e6b1d6b23a5a2858f108df62360050ff86b /apps
parent323f40a49374af02feca7d21da986b36a7d559e2 (diff)
downloadnextcloud-server-e98b2cb46138a786b1f21e93b7cee77272834491.tar.gz
nextcloud-server-e98b2cb46138a786b1f21e93b7cee77272834491.zip
log email shares in admin_audit log
Signed-off-by: Sascha Wiswedel <sascha.wiswedel@nextcloud.com>
Diffstat (limited to 'apps')
-rw-r--r--apps/admin_audit/lib/Actions/Sharing.php25
1 files changed, 25 insertions, 0 deletions
diff --git a/apps/admin_audit/lib/Actions/Sharing.php b/apps/admin_audit/lib/Actions/Sharing.php
index 0c4601eef38..dea13e21c7e 100644
--- a/apps/admin_audit/lib/Actions/Sharing.php
+++ b/apps/admin_audit/lib/Actions/Sharing.php
@@ -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',
+ ]
+ );
}
}