From 8b0ddb9ed1788da507f5127db42197195072bd5b Mon Sep 17 00:00:00 2001 From: "gao.zhiyuan" Date: Wed, 21 Sep 2022 14:10:39 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=B2=E6=9C=89=E7=AE=A1=E7=90=86=E5=91=98?= =?UTF-8?q?=E5=86=8D=E8=AE=BE=E7=BD=AE=E4=B8=BA=E6=88=90=E5=91=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/app/lib/controllers/organization/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/api/app/lib/controllers/organization/index.js b/api/app/lib/controllers/organization/index.js index 334ed1a..28f68f2 100644 --- a/api/app/lib/controllers/organization/index.js +++ b/api/app/lib/controllers/organization/index.js @@ -70,6 +70,7 @@ async function editUser (ctx) { storageData.role = [...new Set([...existUserRes.role, ...role])] } else if (existUserRes.role.includes('admin')) { // 正在修改成员 但是此时还是管理员 + storageData.disabled = true storageData.role = [...role, 'admin'] } await models.User.update(storageData, {