From 4dc9e2c3bb458a4184ebdeb96d29a35735e29f36 Mon Sep 17 00:00:00 2001 From: zhaozhengran <97390483@qq.com> Date: Sat, 11 Jul 2020 19:33:42 +0800 Subject: [PATCH] =?UTF-8?q?fix(flush=20perm):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E7=94=A8=E6=88=B7=E6=9D=83=E9=99=90=E7=A9=BF=E9=80=8F=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/flush_perm.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/flush_perm.py b/scripts/flush_perm.py index db71dbb07..5025fbbb3 100644 --- a/scripts/flush_perm.py +++ b/scripts/flush_perm.py @@ -147,7 +147,7 @@ def flush_user_perm(): SET up.group_perm_value = true WHERE - np.value = true + np.value = true and up.perm_id = np.perm_id ''') cursor.execute(f''' @@ -165,7 +165,7 @@ def flush_user_perm(): SET up.dept_perm_value = true WHERE - np.value = true + np.value = true and up.perm_id = np.perm_id ''') else: for user in User.valid_objects.all():