check workflow

This commit is contained in:
kittapath 2024-10-22 08:20:45 +07:00
parent 4c2188a363
commit 32b0aa325d
74 changed files with 529 additions and 285 deletions

View file

@ -2152,7 +2152,8 @@ export class PositionController extends Controller {
*/
@Get("history/{id}")
async getHistoryPosMater(@Path() id: string, @Request() request: RequestWithUser) {
await new permission().PermissionGet(request, "SYS_ORG");
let _workflow = await new permission().Workflow(request, id, "SYS_ORG");
if (_workflow == false) await new permission().PermissionGet(request, "SYS_ORG");
const posMaster = await this.posMasterRepository.findOne({
where: { id },
});