summaryrefslogtreecommitdiffstats
path: root/apps/admin_audit
diff options
context:
space:
mode:
authorDaniel Calviño Sánchez <danxuliu@gmail.com>2018-06-30 14:00:24 +0200
committerDaniel Calviño Sánchez <danxuliu@gmail.com>2018-08-08 14:25:43 +0200
commit0fab46c817f8a94905937c2e805d38b2f09d4d6a (patch)
tree7c79a27ab0b3dc4e406c12532faafe41189530a0 /apps/admin_audit
parent30d8e3ee05b38208883ec7b9e57e81a9b8508c9f (diff)
downloadnextcloud-server-0fab46c817f8a94905937c2e805d38b2f09d4d6a.tar.gz
nextcloud-server-0fab46c817f8a94905937c2e805d38b2f09d4d6a.zip
Log sharing and unsharing with a room in the auditing app
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'apps/admin_audit')
-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 b66c9f50eb8..0c4601eef38 100644
--- a/apps/admin_audit/lib/Actions/Sharing.php
+++ b/apps/admin_audit/lib/Actions/Sharing.php
@@ -78,6 +78,19 @@ class Sharing extends Action {
'id',
]
);
+ } elseif($params['shareType'] === Share::SHARE_TYPE_ROOM) {
+ $this->log(
+ 'The %s "%s" with ID "%s" has been shared to the room "%s" with permissions "%s" (Share ID: %s)',
+ $params,
+ [
+ 'itemType',
+ 'itemTarget',
+ 'itemSource',
+ 'shareWith',
+ 'permissions',
+ 'id',
+ ]
+ );
}
}
@@ -122,6 +135,18 @@ class Sharing extends Action {
'id',
]
);
+ } elseif($params['shareType'] === Share::SHARE_TYPE_ROOM) {
+ $this->log(
+ 'The %s "%s" with ID "%s" has been unshared from the room "%s" (Share ID: %s)',
+ $params,
+ [
+ 'itemType',
+ 'fileTarget',
+ 'itemSource',
+ 'shareWith',
+ 'id',
+ ]
+ );
}
}