not only files can be reshared but also folders

remotes/origin/stable5
Björn Schießle 12 years ago
parent 20828488bc
commit 02e2f7384e
  1. 2
      apps/files_sharing/lib/updater.php

@ -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…
Cancel
Save