summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/lib/sharedstorage.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_sharing/lib/sharedstorage.php')
-rw-r--r--apps/files_sharing/lib/sharedstorage.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/apps/files_sharing/lib/sharedstorage.php b/apps/files_sharing/lib/sharedstorage.php
index 565c3e7af8e..c90f6d71f71 100644
--- a/apps/files_sharing/lib/sharedstorage.php
+++ b/apps/files_sharing/lib/sharedstorage.php
@@ -195,7 +195,7 @@ class Shared extends \OC\Files\Storage\Common {
public function isCreatable($path) {
if ($path == '') {
- return ($this->getPermissions($this->getMountPoint()) & \OCP\PERMISSION_CREATE);
+ $path = $this->mountPoint;
}
return ($this->getPermissions($path) & \OCP\PERMISSION_CREATE);
}
@@ -206,21 +206,21 @@ class Shared extends \OC\Files\Storage\Common {
public function isUpdatable($path) {
if ($path == '') {
- return false;
+ $path = $this->mountPoint;
}
return ($this->getPermissions($path) & \OCP\PERMISSION_UPDATE);
}
public function isDeletable($path) {
if ($path == '') {
- return true;
+ $path = $this->mountPoint;
}
return ($this->getPermissions($path) & \OCP\PERMISSION_DELETE);
}
public function isSharable($path) {
if ($path == '') {
- return false;
+ $path = $this->mountPoint;
}
return ($this->getPermissions($path) & \OCP\PERMISSION_SHARE);
}
@@ -441,7 +441,7 @@ class Shared extends \OC\Files\Storage\Common {
public function free_space($path) {
if ($path == '') {
- return \OC\Files\SPACE_UNKNOWN;
+ $path = $this->mountPoint;
}
$source = $this->getSourcePath($path);
if ($source) {
@@ -531,7 +531,7 @@ class Shared extends \OC\Files\Storage\Common {
public function getOwner($path) {
if ($path == '') {
- return false;
+ $path = $this->mountPoint;
}
$source = $this->getFile($path);
if ($source) {
@@ -542,7 +542,7 @@ class Shared extends \OC\Files\Storage\Common {
public function getETag($path) {
if ($path == '') {
- return parent::getETag($path);
+ $path = $this->mountPoint;
}
if ($source = $this->getSourcePath($path)) {
list($storage, $internalPath) = \OC\Files\Filesystem::resolvePath($source);