From 80fde2d8d1a0f70a62416241a9bf9c8e4f0ac489 Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Tue, 25 Sep 2012 12:04:15 +0200 Subject: Sharing update: take over reshares and thus don't fail --- apps/files_sharing/appinfo/update.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/files_sharing/appinfo/update.php') diff --git a/apps/files_sharing/appinfo/update.php b/apps/files_sharing/appinfo/update.php index dc8c8dd73fc..857d0914872 100644 --- a/apps/files_sharing/appinfo/update.php +++ b/apps/files_sharing/appinfo/update.php @@ -21,7 +21,7 @@ if (version_compare($installedVersion, '0.3', '<')) { if ($row['permissions'] == 0) { $permissions = OCP\Share::PERMISSION_READ; } else { - $permissions = OCP\Share::PERMISSION_READ | OCP\Share::PERMISSION_UPDATE; + $permissions = OCP\Share::PERMISSION_READ | OCP\Share::PERMISSION_UPDATE | OCP\Share::PERMISSION_SHARE; if ($itemType == 'folder') { $permissions |= OCP\Share::PERMISSION_CREATE; } -- cgit v1.2.3