mirror of
https://github.com/nextcloud/server.git
synced 2026-02-20 00:12:30 -05:00
Merge pull request #28075 from nextcloud/enh/noid/admin_audit-report-full-path
Admin Audit - Sharing: createShare - report the full path
This commit is contained in:
commit
b31c08e536
3 changed files with 11 additions and 9 deletions
|
|
@ -50,7 +50,7 @@ class Sharing extends Action {
|
|||
$params,
|
||||
[
|
||||
'itemType',
|
||||
'itemTarget',
|
||||
'path',
|
||||
'itemSource',
|
||||
'permissions',
|
||||
'id',
|
||||
|
|
@ -62,7 +62,7 @@ class Sharing extends Action {
|
|||
$params,
|
||||
[
|
||||
'itemType',
|
||||
'itemTarget',
|
||||
'path',
|
||||
'itemSource',
|
||||
'shareWith',
|
||||
'permissions',
|
||||
|
|
@ -75,7 +75,7 @@ class Sharing extends Action {
|
|||
$params,
|
||||
[
|
||||
'itemType',
|
||||
'itemTarget',
|
||||
'path',
|
||||
'itemSource',
|
||||
'shareWith',
|
||||
'permissions',
|
||||
|
|
@ -88,7 +88,7 @@ class Sharing extends Action {
|
|||
$params,
|
||||
[
|
||||
'itemType',
|
||||
'itemTarget',
|
||||
'path',
|
||||
'itemSource',
|
||||
'shareWith',
|
||||
'permissions',
|
||||
|
|
@ -101,7 +101,7 @@ class Sharing extends Action {
|
|||
$params,
|
||||
[
|
||||
'itemType',
|
||||
'itemTarget',
|
||||
'path',
|
||||
'itemSource',
|
||||
'shareWith',
|
||||
'permissions',
|
||||
|
|
@ -114,7 +114,7 @@ class Sharing extends Action {
|
|||
$params,
|
||||
[
|
||||
'itemType',
|
||||
'itemTarget',
|
||||
'path',
|
||||
'itemSource',
|
||||
'shareWith',
|
||||
'permissions',
|
||||
|
|
@ -127,7 +127,7 @@ class Sharing extends Action {
|
|||
$params,
|
||||
[
|
||||
'itemType',
|
||||
'itemTarget',
|
||||
'path',
|
||||
'itemSource',
|
||||
'shareWith',
|
||||
'permissions',
|
||||
|
|
@ -140,7 +140,7 @@ class Sharing extends Action {
|
|||
$params,
|
||||
[
|
||||
'itemType',
|
||||
'itemTarget',
|
||||
'path',
|
||||
'itemSource',
|
||||
'shareWith',
|
||||
'permissions',
|
||||
|
|
@ -153,7 +153,7 @@ class Sharing extends Action {
|
|||
$params,
|
||||
[
|
||||
'itemType',
|
||||
'itemTarget',
|
||||
'path',
|
||||
'itemSource',
|
||||
'shareWith',
|
||||
'permissions',
|
||||
|
|
|
|||
|
|
@ -170,6 +170,7 @@ class LegacyHooks {
|
|||
'shareWith' => $share->getSharedWith(),
|
||||
'itemTarget' => $share->getTarget(),
|
||||
'fileTarget' => $share->getTarget(),
|
||||
'path' => $share->getNode()->getPath(),
|
||||
];
|
||||
|
||||
\OC_Hook::emit(Share::class, 'post_shared', $postHookData);
|
||||
|
|
|
|||
|
|
@ -342,6 +342,7 @@ class LegacyHooksTest extends TestCase {
|
|||
'permissions' => Constants::PERMISSION_ALL,
|
||||
'expiration' => $date,
|
||||
'token' => 'token',
|
||||
'path' => null,
|
||||
];
|
||||
|
||||
$hookListner
|
||||
|
|
|
|||
Loading…
Reference in a new issue