mirror of
https://github.com/nextcloud/server.git
synced 2026-06-10 17:23:59 -04:00
check for class name in case class is not loaded
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
This commit is contained in:
parent
0e4eeab3c1
commit
60810b44bc
1 changed files with 1 additions and 2 deletions
|
|
@ -28,7 +28,6 @@ namespace OCA\Files_Trashbin;
|
|||
use OC\Files\Filesystem;
|
||||
use OC\Files\Storage\Wrapper\Wrapper;
|
||||
use OC\Files\View;
|
||||
use OCA\Files_Sharing\SharedStorage;
|
||||
use OCP\IUserManager;
|
||||
|
||||
class Storage extends Wrapper {
|
||||
|
|
@ -87,7 +86,7 @@ class Storage extends Wrapper {
|
|||
$targetOwner = $view->getOwner($newPath);
|
||||
|
||||
if($sourceOwner !== $targetOwner
|
||||
&& $sourceStorage->instanceOfStorage(SharedStorage::class)
|
||||
&& $sourceStorage->instanceOfStorage('OCA\Files_Sharing\SharedStorage')
|
||||
) {
|
||||
$fileMovedOutOfSharedFolder = true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue