Merge pull request #16627 from nextcloud/backport/16586/stable16
[stable16] log circles and remote shares in admin_audit
This commit is contained in:
commit
fb65d1e0ae
|
@ -104,6 +104,45 @@ class Sharing extends Action {
|
||||||
'id',
|
'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',
|
||||||
|
]
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -172,6 +211,42 @@ class Sharing extends Action {
|
||||||
'id',
|
'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',
|
||||||
|
]
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue