A shared storage is never a home storage - fixes #25582
This commit is contained in:
parent
c16b15d52e
commit
6c365cb06d
|
@ -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
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue