修改保存文件判断

This commit is contained in:
liaofei 2023-04-24 17:17:39 +08:00
parent 3489451d7d
commit 206145cfb6

View File

@ -335,7 +335,7 @@ class SystemCrud extends AuthController
}
$makePath[$key] = $item;
}
if (!in_array($filepath, $makePath)) {
if (!in_array($filepath, $crudInfo->make_path)) {
return app('json')->fail('您没有权限修改此文件');
}
$res = $service->savefile($filepath, $comment);