summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2019-07-26 16:14:47 +0200
committerGitHub <noreply@github.com>2019-07-26 16:14:47 +0200
commit4986241873ff92a7763ba1b7b5c436a3dbb189ed (patch)
tree9234e74d00df79b1bd254e5fd2fad944c2ea6266
parent3ba33cab5b458e909d8f0c78ce46c99a7d8e148f (diff)
parente98b2cb46138a786b1f21e93b7cee77272834491 (diff)
downloadnextcloud-server-4986241873ff92a7763ba1b7b5c436a3dbb189ed.tar.gz
nextcloud-server-4986241873ff92a7763ba1b7b5c436a3dbb189ed.zip
Merge pull request #16556 from nextcloud/feature/16554_adminAuditShareByMail/wiswedel
log email shares in admin_audit log
-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',
+ ]
+ );
}
}