A shared storage is never a home storage - fixes #25582

This commit is contained in:
Thomas Müller 2016-08-01 14:22:30 +02:00 committed by Robin Appelman
parent c16b15d52e
commit 6c365cb06d
1 changed files with 10 additions and 0 deletions

View File

@ -105,6 +105,16 @@ class Shared extends \OC\Files\Storage\Wrapper\Jail implements ISharedStorage {
}
}
/**
* @inheritdoc
*/
public function instanceOfStorage($class) {
if (in_array($class, ['\OC\Files\Storage\Home', '\OC\Files\ObjectStore\HomeObjectStoreStorage'])) {
return false;
}
return parent::instanceOfStorage($class);
}
/**
* @return string
*/