summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/appinfo
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2012-11-15 00:37:54 +0100
committerRobin Appelman <icewind@owncloud.com>2012-11-15 00:37:54 +0100
commitbf2ac9f113d41dc944f42d1516649a3a72e88a65 (patch)
tree36e0c3b8a6327321122fc8a63b7aa23d1ee0f789 /apps/files_sharing/appinfo
parent41a61bc637c3d60efc5abe81c39fc726fd78cd1d (diff)
parenta418a3ba65d0097047cfcad1b4ee82185c42d22a (diff)
downloadnextcloud-server-bf2ac9f113d41dc944f42d1516649a3a72e88a65.tar.gz
nextcloud-server-bf2ac9f113d41dc944f42d1516649a3a72e88a65.zip
merge master into filesystem
Diffstat (limited to 'apps/files_sharing/appinfo')
-rw-r--r--apps/files_sharing/appinfo/update.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/files_sharing/appinfo/update.php b/apps/files_sharing/appinfo/update.php
index 69c526eae0f..1d22b32b503 100644
--- a/apps/files_sharing/appinfo/update.php
+++ b/apps/files_sharing/appinfo/update.php
@@ -21,11 +21,11 @@ if (version_compare($installedVersion, '0.3', '<')) {
$itemType = 'file';
}
if ($row['permissions'] == 0) {
- $permissions = OCP\Share::PERMISSION_READ | OCP\Share::PERMISSION_SHARE;
+ $permissions = OCP\PERMISSION_READ | OCP\PERMISSION_SHARE;
} else {
- $permissions = OCP\Share::PERMISSION_READ | OCP\Share::PERMISSION_UPDATE | OCP\Share::PERMISSION_SHARE;
+ $permissions = OCP\PERMISSION_READ | OCP\PERMISSION_UPDATE | OCP\PERMISSION_SHARE;
if ($itemType == 'folder') {
- $permissions |= OCP\Share::PERMISSION_CREATE;
+ $permissions |= OCP\PERMISSION_CREATE;
}
}
$pos = strrpos($row['uid_shared_with'], '@');