summaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2016-02-29 08:53:58 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2016-02-29 08:53:58 +0100
commit6526c122afa2c141f4cd5ffd7e292f7a5556cf61 (patch)
tree5db3811e1099a8c53813c2c354a0379e23fdd0c0 /lib/private
parent5800585039836f138fcc40ca7a05053fdfbf2454 (diff)
parentb116e80c5629caab679e158813f1b3fda13cb501 (diff)
downloadnextcloud-server-6526c122afa2c141f4cd5ffd7e292f7a5556cf61.tar.gz
nextcloud-server-6526c122afa2c141f4cd5ffd7e292f7a5556cf61.zip
Merge pull request #22683 from owncloud/fix_22682
Relax rootfolder check
Diffstat (limited to 'lib/private')
-rw-r--r--lib/private/share20/manager.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/share20/manager.php b/lib/private/share20/manager.php
index df125ea6fc1..d24ecb6f96c 100644
--- a/lib/private/share20/manager.php
+++ b/lib/private/share20/manager.php
@@ -198,7 +198,7 @@ class Manager implements IManager {
}
// And you can't share your rootfolder
- if ($this->rootFolder->getUserFolder($share->getSharedBy())->isSubNode($share->getNode()) === false) {
+ if ($this->rootFolder->getUserFolder($share->getSharedBy())->getPath() === $share->getNode()->getPath()) {
throw new \InvalidArgumentException('You can\'t share your root folder');
}