fix: 无法移动共享文件夹内创建的文件

This commit is contained in:
kuaifan 2022-02-25 00:08:32 +08:00
parent 9a66c38e01
commit 33135b1df1

View File

@ -348,9 +348,7 @@ class FileController extends AbstractController
return Base::retError('一次最多只能移动100个文件或文件夹'); return Base::retError('一次最多只能移动100个文件或文件夹');
} }
if ($pid > 0) { if ($pid > 0) {
if (!File::whereUserid($user->userid)->whereId($pid)->exists()) { File::permissionFind($pid, 1);
return Base::retError('参数错误');
}
} }
// //
$files = []; $files = [];