Merge pull request #16566 from nextcloud/backport/16556/stable16
[stable16] log email shares in admin_audit log
This commit is contained in:
commit
5786c6c058
|
@ -91,6 +91,19 @@ class Sharing extends Action {
|
||||||
'id',
|
'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',
|
'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',
|
||||||
|
]
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue