Allowed permission to instructor for accessing company document API
This commit is contained in:
@@ -92,6 +92,8 @@ public class Validator {
|
|||||||
return companyEntity;
|
return companyEntity;
|
||||||
} else if (checkIsInstructorManager()) {
|
} else if (checkIsInstructorManager()) {
|
||||||
return companyEntity;
|
return companyEntity;
|
||||||
|
}else if (checkIsPreInstructor()) {
|
||||||
|
return companyEntity;
|
||||||
}
|
}
|
||||||
Map<String, Object> userInfo = tokenProvider.getUserInfoAndUserIdFromToken(request);
|
Map<String, Object> userInfo = tokenProvider.getUserInfoAndUserIdFromToken(request);
|
||||||
companyService.validateUserWithCompny(getUserId(userInfo), companyId);
|
companyService.validateUserWithCompny(getUserId(userInfo), companyId);
|
||||||
|
|||||||
Reference in New Issue
Block a user