|
@@ -78,9 +78,9 @@ public class AppCameraService {
|
|
|
throw new BusinessException(AppConstant.FAILURE_CODE_4010, AppConstant.FAILURE_MSG_4010);
|
|
|
}
|
|
|
Set<Long> roleIds = userRoleService.getByUser(user);
|
|
|
- if(!roleIds.contains(5L) && !roleIds.contains(6L) && !roleIds.contains(1L)){
|
|
|
- throw new BusinessException(CameraConstant.FAILURE_CODE_6005, CameraConstant.FAILURE_MSG_6005);
|
|
|
- }
|
|
|
+// if(!roleIds.contains(5L) && !roleIds.contains(6L) && !roleIds.contains(1L)){
|
|
|
+// throw new BusinessException(CameraConstant.FAILURE_CODE_6005, CameraConstant.FAILURE_MSG_6005);
|
|
|
+// }
|
|
|
if(!user.getCompanyId().equals(cameraDetail.getCompanyId())){
|
|
|
throw new BusinessException(CameraConstant.FAILURE_CODE_6005, CameraConstant.FAILURE_MSG_6005);
|
|
|
}
|
|
@@ -115,9 +115,9 @@ public class AppCameraService {
|
|
|
}
|
|
|
|
|
|
Set<Long> roleIds = userRoleService.getByUser(user);
|
|
|
- if(!roleIds.contains(5L) && !roleIds.contains(6L) && !roleIds.contains(1L)){
|
|
|
- throw new BusinessException(CameraConstant.FAILURE_CODE_6005, CameraConstant.FAILURE_MSG_6005);
|
|
|
- }
|
|
|
+// if(!roleIds.contains(5L) && !roleIds.contains(6L) && !roleIds.contains(1L)){
|
|
|
+// throw new BusinessException(CameraConstant.FAILURE_CODE_6005, CameraConstant.FAILURE_MSG_6005);
|
|
|
+// }
|
|
|
if(!user.getCompanyId().equals(cameraDetail.getCompanyId())){
|
|
|
throw new BusinessException(CameraConstant.FAILURE_CODE_6005, CameraConstant.FAILURE_MSG_6005);
|
|
|
}
|