not only files can be reshared but also folders

This commit is contained in:
Björn Schießle 2013-03-08 17:32:04 +01:00
parent 20828488bc
commit 02e2f7384e

View file

@ -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();