recheck เมนู ลูกจ้างชั่วคราว (list to get)
This commit is contained in:
parent
271e6964b3
commit
51eaf6b976
19 changed files with 37 additions and 38 deletions
|
|
@ -19,7 +19,7 @@ export class ProfileAvatarEmployeeTempController extends Controller {
|
|||
@Path() profileEmployeeId: string,
|
||||
@Request() req: RequestWithUser,
|
||||
) {
|
||||
await new permission().PermissionList(req, "SYS_REGISTRY_TEMP");
|
||||
await new permission().PermissionGet(req, "SYS_REGISTRY_TEMP");
|
||||
const lists = await this.avatarRepository.find({
|
||||
where: { profileEmployeeId },
|
||||
});
|
||||
|
|
@ -28,7 +28,7 @@ export class ProfileAvatarEmployeeTempController extends Controller {
|
|||
|
||||
@Get("profileEmployeeId/{id}")
|
||||
async getProfile(@Path() id: string, @Request() req: RequestWithUser) {
|
||||
await new permission().PermissionOrgUserGet(req, "SYS_REGISTRY_TEMP", id);
|
||||
await new permission().PermissionGet(req, "SYS_REGISTRY_TEMP");
|
||||
const profile = await this.profileRepository.findOne({
|
||||
select: ["id", "avatar", "avatarName"],
|
||||
where: { id },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue