Update MI docs for client id/secret

This commit is contained in:
Tuan Dang
2023-12-04 23:04:04 +07:00
parent 8b1eaad7b5
commit 28b617fd89
18 changed files with 52 additions and 71 deletions
@@ -531,6 +531,8 @@ export const updateMachineIdentity = async (req: Request, res: Response) => {
if (!machineIdentity) throw ResourceNotFoundError({
message: `Machine identity with id ${machineId} not found`
});
// TODO: validate existing role (if it is currently admin then cant demote it)
const { permission } = await getUserOrgPermissions(req.user._id, machineIdentity.organization.toString());