From 585d9d05f095c72905e5f38f3d9963751c690930 Mon Sep 17 00:00:00 2001 From: "gao.zhiyuan" Date: Thu, 15 Sep 2022 17:09:09 +0800 Subject: [PATCH] =?UTF-8?q?=20=E8=A7=92=E8=89=B2=E9=85=8D=E7=BD=AE-?= =?UTF-8?q?=E5=90=AF=E7=94=A8=E6=88=90=E5=91=98=E7=AE=A1=E7=90=86=E6=A0=8F?= =?UTF-8?q?=E7=82=B9=E5=87=BB=E7=A6=81=E7=94=A8=E6=8C=89=E9=92=AE=E6=8F=90?= =?UTF-8?q?=E7=A4=BA=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/app/lib/controllers/organization/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/app/lib/controllers/organization/index.js b/api/app/lib/controllers/organization/index.js index ea37a47..f8c4ba7 100644 --- a/api/app/lib/controllers/organization/index.js +++ b/api/app/lib/controllers/organization/index.js @@ -93,7 +93,7 @@ async function putUser (ctx) { } }) - if (existUserRes && existUserRes.role.includes('admin') && disabled) { + if (existUserRes && existUserRes.role.includes('admin') && !disabled) { throw '成员不能既是管理员又是普通成员' }