Explorar o código

修改保存文件判断

liaofei %!s(int64=2) %!d(string=hai) anos
pai
achega
206145cfb6
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      crmeb/app/adminapi/controller/v1/setting/SystemCrud.php

+ 1 - 1
crmeb/app/adminapi/controller/v1/setting/SystemCrud.php

@@ -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);