From 2a22adb4bbb53601ce0de4227b3fda16f55d67d1 Mon Sep 17 00:00:00 2001 From: unclesam <2036253946@qq.com> Date: Tue, 7 Jul 2026 22:20:54 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E5=B0=86=20casbin.conf=20=E5=8A=A0?= =?UTF-8?q?=E5=85=A5=20gitignore?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 + configs/{casbin.conf => casbin.conf.dev} | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) rename configs/{casbin.conf => casbin.conf.dev} (70%) diff --git a/.gitignore b/.gitignore index 8929234..2dfcf04 100644 --- a/.gitignore +++ b/.gitignore @@ -22,6 +22,7 @@ logs/ # 配置文件(含敏感信息,仅本地保留) configs/config.yaml +configs/casbin.conf # Go vendor/ diff --git a/configs/casbin.conf b/configs/casbin.conf.dev similarity index 70% rename from configs/casbin.conf rename to configs/casbin.conf.dev index eb1975e..19a9003 100644 --- a/configs/casbin.conf +++ b/configs/casbin.conf.dev @@ -16,4 +16,4 @@ e = some(where (p.eft == allow)) # Matchers [matchers] -m = r.sub == "unclesam" || g(r.sub, p.sub) && keyMatch2(r.obj, p.obj) && regexMatch(r.act, p.act) \ No newline at end of file +m = r.sub == "your_admin_user" || g(r.sub, p.sub) && keyMatch2(r.obj, p.obj) && regexMatch(r.act, p.act)