Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- query.setObjectId(bundleManagementStorageService.getOne(query));
- if (!query.getObjectId().getCompany().equals(query.getCompanyId())) {
- Company company = operatorExists(query.getObjectId().getCompany());
- if (!query.getObjectId().getCompany().equals(company.getManagedBy())) {
- throw new ValidationException(ErrorCode.ACCESS_VALIDATION_ERROR);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement