Browse Source

人员信息查询

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

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

@ -48,11 +48,11 @@ async function editUser (ctx) {
// 存在且传递id 或者 不传id也存在
// 修改 update
storageData.deleted = false
storageData.role = [...new Set([...existUserRes.role, ...role])]
storageData.role = role
if (
storageData.role.includes('admin')
) {
storageData.disabled = false
storageData.disabled = true
}
await models.User.update(storageData, {
where: {

Loading…
Cancel
Save