check workflow
This commit is contained in:
parent
4c2188a363
commit
32b0aa325d
74 changed files with 529 additions and 285 deletions
|
|
@ -48,7 +48,8 @@ export class ProfileCertificateEmployeeTempController extends Controller {
|
|||
|
||||
@Get("{profileEmployeeId}")
|
||||
public async getCertificate(@Path() profileEmployeeId: string, @Request() req: RequestWithUser) {
|
||||
await new permission().PermissionGet(req, "SYS_REGISTRY_TEMP");
|
||||
let _workflow = await new permission().Workflow(req, profileEmployeeId, "SYS_REGISTRY_TEMP");
|
||||
if (_workflow == false) await new permission().PermissionGet(req, "SYS_REGISTRY_TEMP");
|
||||
const record = await this.certificateRepo.find({
|
||||
where: { profileEmployeeId },
|
||||
order: { createdAt: "ASC" },
|
||||
|
|
@ -61,7 +62,8 @@ export class ProfileCertificateEmployeeTempController extends Controller {
|
|||
@Path() certificateId: string,
|
||||
@Request() req: RequestWithUser,
|
||||
) {
|
||||
await new permission().PermissionGet(req, "SYS_REGISTRY_TEMP");
|
||||
let _workflow = await new permission().Workflow(req, certificateId, "SYS_REGISTRY_TEMP");
|
||||
if (_workflow == false) await new permission().PermissionGet(req, "SYS_REGISTRY_TEMP");
|
||||
const record = await this.certificateHistoryRepo.find({
|
||||
where: {
|
||||
profileCertificateId: certificateId,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue