api test สิทธิ์

This commit is contained in:
kittapath 2024-08-20 13:33:03 +07:00
parent 99255ff36b
commit bd1f889fba
3 changed files with 119 additions and 2 deletions

View file

@ -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,