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, {