summaryrefslogtreecommitdiffstats
path: root/apps/files/index.php
diff options
context:
space:
mode:
authorThomas Tanghus <thomas@tanghus.net>2012-11-11 19:58:54 +0100
committerThomas Tanghus <thomas@tanghus.net>2012-11-11 23:10:23 +0100
commit56239df2e7095d234a07240f22be368b41fbb9b6 (patch)
treec4f301ad0acf8af46bed441eddc1350d245e5122 /apps/files/index.php
parent7f0c69eb0ed2c4074aedb73d16eb675c08042354 (diff)
downloadnextcloud-server-56239df2e7095d234a07240f22be368b41fbb9b6.tar.gz
nextcloud-server-56239df2e7095d234a07240f22be368b41fbb9b6.zip
Update all to use OCP\PERMISSION_* instead of OCP\Share::PERMISSION_*
Diffstat (limited to 'apps/files/index.php')
-rw-r--r--apps/files/index.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/files/index.php b/apps/files/index.php
index c46ec59d03c..74332a439f6 100644
--- a/apps/files/index.php
+++ b/apps/files/index.php
@@ -89,15 +89,15 @@ $freeSpace=OC_Filesystem::free_space($dir);
$freeSpace=max($freeSpace, 0);
$maxUploadFilesize = min($maxUploadFilesize, $freeSpace);
-$permissions = OCP\Share::PERMISSION_READ;
+$permissions = OCP\PERMISSION_READ;
if (OC_Filesystem::isUpdatable($dir.'/')) {
- $permissions |= OCP\Share::PERMISSION_UPDATE;
+ $permissions |= OCP\PERMISSION_UPDATE;
}
if (OC_Filesystem::isDeletable($dir.'/')) {
- $permissions |= OCP\Share::PERMISSION_DELETE;
+ $permissions |= OCP\PERMISSION_DELETE;
}
if (OC_Filesystem::isSharable($dir.'/')) {
- $permissions |= OCP\Share::PERMISSION_SHARE;
+ $permissions |= OCP\PERMISSION_SHARE;
}
$tmpl = new OCP\Template( 'files', 'index', 'user' );