Skip to content
Snippets Groups Projects
Commit 02e2f738 authored by Björn Schießle's avatar Björn Schießle
Browse files

not only files can be reshared but also folders

parent 20828488
Branches
No related tags found
No related merge requests found
...@@ -86,7 +86,7 @@ class Shared_Updater { ...@@ -86,7 +86,7 @@ class Shared_Updater {
static public function shareHook($params) { static public function shareHook($params) {
if ($params['itemType'] === 'file' || $params['itemType'] === 'folder') { if ($params['itemType'] === 'file' || $params['itemType'] === 'folder') {
$uidOwner = \OCP\User::getUser(); $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)) { if (!empty($users)) {
while (!empty($users)) { while (!empty($users)) {
$reshareUsers = array(); $reshareUsers = array();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment