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也存在 // 存在且传递id 或者 不传id也存在
// 修改 update // 修改 update
storageData.deleted = false storageData.deleted = false
storageData.role = [...new Set([...existUserRes.role, ...role])] storageData.role = role
if ( if (
storageData.role.includes('admin') storageData.role.includes('admin')
) { ) {
storageData.disabled = false storageData.disabled = true
} }
await models.User.update(storageData, { await models.User.update(storageData, {
where: { where: {

Loading…
Cancel
Save