diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2014-07-01 13:33:21 +0200 |
---|---|---|
committer | Bjoern Schiessle <schiessle@owncloud.com> | 2014-07-01 19:38:55 +0200 |
commit | bb935978fa1af1dd304bf2a5aad4d135dfea8268 (patch) | |
tree | f32702ddb9c9ce90afbfef2756f07486f52477d4 /apps/files_sharing/lib/sharedmount.php | |
parent | 735eac6c9dbdcae80c46d3f680fbb7e86a2e2432 (diff) | |
download | nextcloud-server-bb935978fa1af1dd304bf2a5aad4d135dfea8268.tar.gz nextcloud-server-bb935978fa1af1dd304bf2a5aad4d135dfea8268.zip |
don't move a share mount point into a different mount point
Diffstat (limited to 'apps/files_sharing/lib/sharedmount.php')
-rw-r--r-- | apps/files_sharing/lib/sharedmount.php | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/apps/files_sharing/lib/sharedmount.php b/apps/files_sharing/lib/sharedmount.php index 8d0ecbc6789..f8def2c6a82 100644 --- a/apps/files_sharing/lib/sharedmount.php +++ b/apps/files_sharing/lib/sharedmount.php @@ -8,10 +8,8 @@ namespace OCA\Files_Sharing; -use OC\Files\Filesystem; use OC\Files\Mount\Mount; use OC\Files\Mount\MoveableMount; -use OC\Files\Storage\Shared; /** * Shared mount points can be moved by the user @@ -119,14 +117,6 @@ class SharedMount extends Mount implements MoveableMount { * @return bool */ public function moveMount($target) { - // it shouldn't be possible to move a Shared storage into another one - list($targetStorage,) = Filesystem::resolvePath($target); - if ($targetStorage instanceof Shared) { - \OCP\Util::writeLog('file sharing', - 'It is not allowed to move one mount point into another one', - \OCP\Util::DEBUG); - return false; - } $relTargetPath = $this->stripUserFilesPath($target); $share = $this->storage->getShare(); |