fix keyclock function
This commit is contained in:
parent
cb0a3e2f38
commit
2648c5b5fa
3 changed files with 15 additions and 8 deletions
|
|
@ -2560,7 +2560,6 @@ export class ProfileEmployeeController extends Controller {
|
|||
@Get("keycloak/position/{revisionId}")
|
||||
async getProfileByKeycloakByRevision(
|
||||
@Path() revisionId: string,
|
||||
@Path() req: RequestWithUser,
|
||||
@Request() request: { user: Record<string, any> },
|
||||
) {
|
||||
const profile = await this.profileRepo.findOne({
|
||||
|
|
@ -2570,7 +2569,6 @@ export class ProfileEmployeeController extends Controller {
|
|||
if (!profile) {
|
||||
throw new HttpError(HttpStatus.NOT_FOUND, "ไม่พบข้อมูลบุคคลนี้ในระบบ");
|
||||
}
|
||||
await new permission().PermissionOrgUserList(req, "SYS_REGISTRY_EMP", profile.id)
|
||||
const _profile = {
|
||||
profileId: profile.id,
|
||||
rank: profile.rank,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue