From 02e2f7384eca440ce38cec98808cbd8aeb04e9c9 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Bj=C3=B6rn=20Schie=C3=9Fle?= <schiessle@owncloud.com>
Date: Fri, 8 Mar 2013 17:32:04 +0100
Subject: [PATCH] not only files can be reshared but also folders

---
 apps/files_sharing/lib/updater.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/apps/files_sharing/lib/updater.php b/apps/files_sharing/lib/updater.php
index 69219db8cb..861025c593 100644
--- a/apps/files_sharing/lib/updater.php
+++ b/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();
-- 
GitLab