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
No related branches found
No related tags found
No related merge requests found
......@@ -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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment