Sharing update: take over reshares and thus don't fail

This commit is contained in:
Arthur Schiwon 2012-09-25 12:04:15 +02:00
parent 25499644e3
commit 80fde2d8d1

View file

@ -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;
}