api test สิทธิ์
This commit is contained in:
parent
99255ff36b
commit
bd1f889fba
3 changed files with 119 additions and 2 deletions
|
|
@ -2465,7 +2465,8 @@ export class ProfileController extends Controller {
|
|||
* @param {string} id Id ทะเบียนประวัติ
|
||||
*/
|
||||
@Get("{id}")
|
||||
async getProfile(@Path() id: string) {
|
||||
async getProfile(@Request() req: RequestWithUser, @Path() id: string) {
|
||||
await new permission().PermissionOrgUserGet(req, "SYS_REGISTRY_OFFICER", id);
|
||||
const profile = await this.profileRepo.findOne({
|
||||
relations: {
|
||||
posLevel: true,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue