permission ข้อมูลการประเมิน
This commit is contained in:
parent
26492de4b8
commit
75ed79f722
9 changed files with 123 additions and 23 deletions
|
|
@ -21,6 +21,8 @@ import HttpError from "../interfaces/http-error";
|
|||
import { Like, Not } from "typeorm";
|
||||
import HttpStatusCode from "../interfaces/http-status";
|
||||
import { KpiEvaluation, updateKpiEvaluation } from "../entities/kpiEvaluation";
|
||||
import permission from "../interfaces/permission";
|
||||
import { RequestWithUser } from "../middlewares/user";
|
||||
@Route("api/v1/kpi/evaluation")
|
||||
@Tags("kpiEvaluation")
|
||||
@Security("bearerAuth")
|
||||
|
|
@ -39,8 +41,9 @@ export class kpiEvaluationController extends Controller {
|
|||
@Put()
|
||||
async updateKpiEvaluations(
|
||||
@Body() requestBody: updateKpiEvaluation[],
|
||||
@Request() request: { user: Record<string, any> },
|
||||
@Request() request: RequestWithUser,
|
||||
) {
|
||||
await new permission().PermissionUpdate(request,"SYS_EVA_COMPETENCY");
|
||||
const updatedIds: string[] = [];
|
||||
|
||||
for (const item of requestBody) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue