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 '成员不能既是管理员又是普通成员' }