check workflow

This commit is contained in:
DESKTOP-2S5P7D1\Windows 10 2024-10-22 08:21:29 +07:00
parent 358a17e40d
commit 168cfcee46
9 changed files with 1667 additions and 1836 deletions

View file

@ -80,7 +80,8 @@ export class AppointController extends Controller {
*/
@Get("{id}")
async GetById(@Request() request: RequestWithUser, @Path() id: string) {
await new permission().PermissionGet(request, "SYS_PROBATION")
let _workflow = await new permission().Workflow(request, id, "SYS_PROBATION")
if (_workflow == false) await new permission().PermissionGet(request, "SYS_PROBATION")
const appoint = await this.appointRepository.findOne({
select: ["id", "topic", "status", "profileId"],