summaryrefslogtreecommitdiffstats
path: root/apps/files
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
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')
-rw-r--r--apps/files/index.php8
-rw-r--r--apps/files/templates/index.php2
2 files changed, 5 insertions, 5 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' );
diff --git a/apps/files/templates/index.php b/apps/files/templates/index.php
index e2640c1113c..725390d4505 100644
--- a/apps/files/templates/index.php
+++ b/apps/files/templates/index.php
@@ -58,7 +58,7 @@
<th id="headerSize"><?php echo $l->t( 'Size' ); ?></th>
<th id="headerDate">
<span id="modified"><?php echo $l->t( 'Modified' ); ?></span>
- <?php if ($_['permissions'] & OCP\Share::PERMISSION_DELETE): ?>
+ <?php if ($_['permissions'] & OCP\PERMISSION_DELETE): ?>
<!-- NOTE: Temporary fix to allow unsharing of files in root of Shared folder -->
<?php if ($_['dir'] == '/Shared'): ?>
<span class="selectedActions"><a href="" class="delete"><?php echo $l->t('Unshare')?> <img class="svg" alt="<?php echo $l->t('Unshare')?>" src="<?php echo OCP\image_path("core", "actions/delete.svg"); ?>" /></a></span>