not only files can be reshared but also folders
This commit is contained in:
parent
20828488bc
commit
02e2f7384e
1 changed files with 1 additions and 1 deletions
|
@ -86,7 +86,7 @@ class Shared_Updater {
|
|||
static public function shareHook($params) {
|
||||
if ($params['itemType'] === 'file' || $params['itemType'] === 'folder') {
|
||||
$uidOwner = \OCP\User::getUser();
|
||||
$users = \OCP\Share::getUsersItemShared('file', $params['fileSource'], $uidOwner, true);
|
||||
$users = \OCP\Share::getUsersItemShared($params['itemType'], $params['fileSource'], $uidOwner, true);
|
||||
if (!empty($users)) {
|
||||
while (!empty($users)) {
|
||||
$reshareUsers = array();
|
||||
|
|
Loading…
Reference in a new issue