aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/lib/cache.php
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2014-04-17 15:54:45 +0200
committerBjoern Schiessle <schiessle@owncloud.com>2014-04-23 12:54:26 +0200
commit7ef8f6d352811e635bc6cf99b56d9482a54eb791 (patch)
tree64f51aa93d4dae96accb2f0a979571b09305edfa /apps/files_sharing/lib/cache.php
parentb102222fed33245c6da8a39c28f0d0a570d0dbea (diff)
downloadnextcloud-server-7ef8f6d352811e635bc6cf99b56d9482a54eb791.tar.gz
nextcloud-server-7ef8f6d352811e635bc6cf99b56d9482a54eb791.zip
always allow to rename the share mount point
Diffstat (limited to 'apps/files_sharing/lib/cache.php')
-rw-r--r--apps/files_sharing/lib/cache.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/files_sharing/lib/cache.php b/apps/files_sharing/lib/cache.php
index 4a2f0ff08b2..67a0410ef76 100644
--- a/apps/files_sharing/lib/cache.php
+++ b/apps/files_sharing/lib/cache.php
@@ -91,6 +91,9 @@ class Shared_Cache extends Cache {
$data = $cache->get($this->files[$file]);
$data['displayname_owner'] = \OC_User::getDisplayName($this->storage->getSharedFrom());
$data['path'] = $path;
+ if ($file === '') {
+ $data['is_share_mount_point'] = true;
+ }
return $data;
}
} else {
@@ -123,6 +126,7 @@ class Shared_Cache extends Cache {
}
if (isset($mountPoint)) {
$data['path'] = 'files/' . $mountPoint;
+ $data['is_share_mount_point'] = true;
}
return $data;
}