Allowed permission to instructor for accessing company document API

This commit is contained in:
rajesh
2025-11-19 15:07:43 +05:30
parent 87816c9ce0
commit 362072e209

View File

@@ -92,6 +92,8 @@ public class Validator {
return companyEntity;
} else if (checkIsInstructorManager()) {
return companyEntity;
}else if (checkIsPreInstructor()) {
return companyEntity;
}
Map<String, Object> userInfo = tokenProvider.getUserInfoAndUserIdFromToken(request);
companyService.validateUserWithCompny(getUserId(userInfo), companyId);