From 59032391adad73710268e26076418c9adc9cd29a Mon Sep 17 00:00:00 2001 From: Henry Date: Mon, 25 Oct 2021 15:53:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DConfig=E6=A8=A1=E5=9E=8B?= =?UTF-8?q?=E5=88=B7=E6=96=B0=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6=E6=97=B6?= =?UTF-8?q?=EF=BC=8C=E7=BC=BA=E5=B0=91uid=E5=AE=9E=E5=8F=82=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/common/model/Config.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/application/common/model/Config.php b/application/common/model/Config.php index 195506bf6..c31a2d916 100644 --- a/application/common/model/Config.php +++ b/application/common/model/Config.php @@ -2,6 +2,7 @@ namespace app\common\model; +use app\admin\library\Auth; use think\Model; /** @@ -198,7 +199,8 @@ class Config extends Model public static function refreshFile() { //如果没有配置权限无法进行修改 - if (!\app\admin\library\Auth::instance()->check('general/config/edit')) { + $auth = Auth::instance(); + if (!$auth->check('general/config/edit', $auth->id)) { return false; } $config = []; -- Gitee