mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-10-30 06:20:50 +00:00
修改保存文件判断
This commit is contained in:
parent
3489451d7d
commit
206145cfb6
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user