Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSascha Wiswedel <sascha.wiswedel@nextcloud.com>2019-07-28 15:16:43 +0300
committerRoeland Jago Douma <roeland@famdouma.nl>2019-08-01 11:56:35 +0300
commit07d2f687863dd93315f081f775112159ee0ce92a (patch)
tree4b3a11890292fb648c9d9ee3d94ee502666efa39 /apps/admin_audit
parent2e2d1b6b5c4976a7c5fa999f4950fe9a24f6b173 (diff)
log circles and remote shares in admin_audit
Signed-off-by: Sascha Wiswedel <sascha.wiswedel@nextcloud.com>
Diffstat (limited to 'apps/admin_audit')
-rw-r--r--apps/admin_audit/lib/Actions/Sharing.php79
1 files changed, 77 insertions, 2 deletions
diff --git a/apps/admin_audit/lib/Actions/Sharing.php b/apps/admin_audit/lib/Actions/Sharing.php
index dea13e21c7e..e3ce0c41481 100644
--- a/apps/admin_audit/lib/Actions/Sharing.php
+++ b/apps/admin_audit/lib/Actions/Sharing.php
@@ -103,7 +103,46 @@ class Sharing extends Action {
'permissions',
'id',
]
- );
+ );
+ } elseif($params['shareType'] === Share::SHARE_TYPE_CIRCLE) {
+ $this->log(
+ 'The %s "%s" with ID "%s" has been shared to the circle "%s" with permissions "%s" (Share ID: %s)',
+ $params,
+ [
+ 'itemType',
+ 'itemTarget',
+ 'itemSource',
+ 'shareWith',
+ 'permissions',
+ 'id',
+ ]
+ );
+ } elseif($params['shareType'] === Share::SHARE_TYPE_REMOTE) {
+ $this->log(
+ 'The %s "%s" with ID "%s" has been shared to the remote user "%s" with permissions "%s" (Share ID: %s)',
+ $params,
+ [
+ 'itemType',
+ 'itemTarget',
+ 'itemSource',
+ 'shareWith',
+ 'permissions',
+ 'id',
+ ]
+ );
+ } elseif($params['shareType'] === Share::SHARE_TYPE_REMOTE_GROUP) {
+ $this->log(
+ 'The %s "%s" with ID "%s" has been shared to the remote group "%s" with permissions "%s" (Share ID: %s)',
+ $params,
+ [
+ 'itemType',
+ 'itemTarget',
+ 'itemSource',
+ 'shareWith',
+ 'permissions',
+ 'id',
+ ]
+ );
}
}
@@ -171,7 +210,43 @@ class Sharing extends Action {
'shareWith',
'id',
]
- );
+ );
+ } elseif($params['shareType'] === Share::SHARE_TYPE_CIRCLE) {
+ $this->log(
+ 'The %s "%s" with ID "%s" has been unshared from the circle "%s" (Share ID: %s)',
+ $params,
+ [
+ 'itemType',
+ 'fileTarget',
+ 'itemSource',
+ 'shareWith',
+ 'id',
+ ]
+ );
+ } elseif($params['shareType'] === Share::SHARE_TYPE_REMOTE) {
+ $this->log(
+ 'The %s "%s" with ID "%s" has been unshared from the remote user "%s" (Share ID: %s)',
+ $params,
+ [
+ 'itemType',
+ 'fileTarget',
+ 'itemSource',
+ 'shareWith',
+ 'id',
+ ]
+ );
+ } elseif($params['shareType'] === Share::SHARE_TYPE_REMOTE_GROUP) {
+ $this->log(
+ 'The %s "%s" with ID "%s" has been unshared from the remote group "%s" (Share ID: %s)',
+ $params,
+ [
+ 'itemType',
+ 'fileTarget',
+ 'itemSource',
+ 'shareWith',
+ 'id',
+ ]
+ );
}
}