summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/appinfo/update.php
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@owncloud.com>2012-09-25 12:04:15 +0200
committerArthur Schiwon <blizzz@owncloud.com>2012-09-25 12:14:20 +0200
commit80fde2d8d1a0f70a62416241a9bf9c8e4f0ac489 (patch)
tree9825505d9afd459c2a0b7cbc0830d7b4e44abfd8 /apps/files_sharing/appinfo/update.php
parent25499644e3ee38a8417b33b8817655ee1b0cf18d (diff)
downloadnextcloud-server-80fde2d8d1a0f70a62416241a9bf9c8e4f0ac489.tar.gz
nextcloud-server-80fde2d8d1a0f70a62416241a9bf9c8e4f0ac489.zip
Sharing update: take over reshares and thus don't fail
Diffstat (limited to 'apps/files_sharing/appinfo/update.php')
-rw-r--r--apps/files_sharing/appinfo/update.php2
1 files changed, 1 insertions, 1 deletions
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;
}