Browse Source

角色筛选

release_0.0.2
巴林闲侠 2 years ago
parent
commit
9566025669
  1. 3
      api/app/lib/controllers/organization/index.js
  2. 21
      api/app/lib/controllers/push/config.js

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

@ -110,6 +110,9 @@ async function user (ctx) {
},
where: {
deleted: false,
$not: {
role: { $contained: ['SuperAdmin', 'admin'] }
}
},
order: [['updateTime', 'DESC']]
}

21
api/app/lib/controllers/push/config.js

@ -0,0 +1,21 @@
'use strict';
async function edit (ctx) {
try {
const models = ctx.fs.dc.models;
ctx.status = 204;
} catch (error) {
ctx.fs.logger.error(`path: ${ctx.path}, error: error`);
ctx.status = 400;
ctx.body = {
message: typeof error == 'string' ? error : undefined
}
}
}
module.exports = {
edit
};
Loading…
Cancel
Save