From 07ec75dd61eff46fb2ef4181c63e26b55fafdc02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=87=E5=B0=91=E6=B3=A2?= <756684177@qq.com> Date: Wed, 1 Jun 2022 16:21:40 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81=E7=AE=80=E5=8C=96=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E8=AF=BB=E5=8F=96=202=E3=80=81=E7=AD=96?= =?UTF-8?q?=E7=95=A5=E6=A8=A1=E5=9E=8B=E6=94=AF=E6=8C=81=E5=A4=9A=E4=B8=AA?= =?UTF-8?q?=EF=BC=8C=E9=BB=98=E8=AE=A4=E4=B8=BA=E7=AC=AC=E4=B8=80=E4=B8=AA?= =?UTF-8?q?=E3=80=82=E5=85=B6=E4=BB=96=E6=89=A9=E5=B1=95=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=EF=BC=8C=E5=8F=AA=E9=9C=80=E8=A6=81=E6=8C=89=E7=85=A7=E5=9F=BA?= =?UTF-8?q?=E7=A1=80=E9=85=8D=E7=BD=AE=E4=B8=80=E6=A0=B7=EF=BC=8C=E5=A4=8D?= =?UTF-8?q?=E5=88=B6=E4=B8=80=E4=BB=BD=EF=BC=8C=E6=8C=87=E5=AE=9A=E7=9B=B8?= =?UTF-8?q?=E5=85=B3=E7=AD=96=E7=95=A5=E6=A8=A1=E5=9E=8B=E5=92=8C=E9=80=82?= =?UTF-8?q?=E9=85=8D=E5=99=A8=E5=8D=B3=E5=8F=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../casbin/webman-permission/permission.php | 21 +------------------ 1 file changed, 1 insertion(+), 20 deletions(-) diff --git a/src/config/plugin/casbin/webman-permission/permission.php b/src/config/plugin/casbin/webman-permission/permission.php index 72b3433..7a4adfe 100644 --- a/src/config/plugin/casbin/webman-permission/permission.php +++ b/src/config/plugin/casbin/webman-permission/permission.php @@ -24,24 +24,5 @@ 'rules_name' => null ], ], - // 其他扩展配置 - 'abac' => [ - // 策略模型Model设置 - 'model' => [ - 'config_type' => 'file', - 'config_file_path' => config_path() . '/plugin/casbin/webman-permission/abac-model.conf', - 'config_text' => '', - ], - // 适配器 - 'adapter' => Casbin\WebmanPermission\Adapter\LaravelDatabaseAdapter::class, - // 数据库设置 - 'database' => [ - // 数据库连接名称,不填为默认配置 - 'connection' => '', - // 策略表名(不含表前缀) - 'rules_table' => 'casbin_rule', - // 策略表完整名称 - 'rules_name' => null - ], - ], + // 其他扩展配置,只需要按照基础配置一样,复制一份,指定相关策略模型和适配器即可 ]; \ No newline at end of file