Browse Source

管理&成员删除

dev
巴林闲侠 2 years ago
parent
commit
fd708308a6
  1. 2
      api/app/lib/controllers/organization/index.js

2
api/app/lib/controllers/organization/index.js

@ -96,7 +96,7 @@ async function putUser (ctx) {
}
})
if (existUserRes && existUserRes.role.includes('admin') && !disabled) {
if (existUserRes && existUserRes.role.includes('admin') && disabled == false) {
throw '成员不能既是管理员又是普通成员'
}

Loading…
Cancel
Save