Skip to content

Commit 75c1a92

Browse files
committed
access change
1 parent c8be6e9 commit 75c1a92

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/main/java/com/itp/breathsafe/data/service/SensorDataService.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@ public void createSensorData(DataUpsertDTO dataUpsertDTO) {
5353
* @throws CustomException if user is not ADMIN
5454
*/
5555
public List<SensorDataDisplayDTO> getSensorsWithLatestData(User user) {
56-
if(user.getRole() != Role.ADMIN) {
57-
throw new CustomException("Unauthorized access");
58-
}
56+
// if(user.getRole() != Role.ADMIN) {
57+
// throw new CustomException("Unauthorized access");
58+
// }
5959

6060
return sensorDataRepository.getSensorsWithLatestData();
6161
}

0 commit comments

Comments
 (0)