summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@owncloud.com>2012-09-25 18:01:56 +0200
committerArthur Schiwon <blizzz@owncloud.com>2012-09-25 18:01:56 +0200
commit7b8c7aaf0d851823f8b602fa875bea9d2f701c2d (patch)
treebbc9b5371063cab2e87b2658276fdff272f6f959
parent80fde2d8d1a0f70a62416241a9bf9c8e4f0ac489 (diff)
downloadnextcloud-server-7b8c7aaf0d851823f8b602fa875bea9d2f701c2d.tar.gz
nextcloud-server-7b8c7aaf0d851823f8b602fa875bea9d2f701c2d.zip
Add missing Sharing permission
-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 857d0914872..21f23c652d1 100644
--- a/apps/files_sharing/appinfo/update.php
+++ b/apps/files_sharing/appinfo/update.php
@@ -19,7 +19,7 @@ if (version_compare($installedVersion, '0.3', '<')) {
$itemType = 'file';
}
if ($row['permissions'] == 0) {
- $permissions = OCP\Share::PERMISSION_READ;
+ $permissions = OCP\Share::PERMISSION_READ | OCP\Share::PERMISSION_SHARE;
} else {
$permissions = OCP\Share::PERMISSION_READ | OCP\Share::PERMISSION_UPDATE | OCP\Share::PERMISSION_SHARE;
if ($itemType == 'folder') {