diff --git a/backend/infosafe_backend/src/main/java/com/fragile/infosafe/primary/service/AccessRequestService.java b/backend/infosafe_backend/src/main/java/com/fragile/infosafe/primary/service/AccessRequestService.java index bc2b6a67..64cbc214 100644 --- a/backend/infosafe_backend/src/main/java/com/fragile/infosafe/primary/service/AccessRequestService.java +++ b/backend/infosafe_backend/src/main/java/com/fragile/infosafe/primary/service/AccessRequestService.java @@ -77,7 +77,7 @@ public ResponseEntity reviewAccessRequest(ReviewRequest reviewRequest) { dataScope.getUsers().add(user); dataScopeRepository.save(dataScope); deleteService.deleteAccessRequestAndSaveToSecondary(reviewRequest.getRequest_id()); - emailUser(encryptionService.decryptString(reviewRequest.getUser_email()), dataScope.getDs_name(), "Approved"); + emailUser(reviewRequest.getUser_email(), dataScope.getDs_name(), "Approved"); notificationsService.makeNotification("Added to Datascope " + dataScope.getDs_name(), user); return ResponseEntity.ok("given to user"); } else { diff --git a/backend/infosafe_backend/src/main/java/com/fragile/infosafe/primary/service/AssetRequestService.java b/backend/infosafe_backend/src/main/java/com/fragile/infosafe/primary/service/AssetRequestService.java index f228c7d5..ae0cda05 100644 --- a/backend/infosafe_backend/src/main/java/com/fragile/infosafe/primary/service/AssetRequestService.java +++ b/backend/infosafe_backend/src/main/java/com/fragile/infosafe/primary/service/AssetRequestService.java @@ -88,7 +88,7 @@ public ResponseEntity reviewAssetRequest(ReviewRequest reviewRequest) { asset.setAvailability("No"); asset.setCurrent_assignee(user); assetRepository.save(asset); - emailUser(encryptionService.decryptString(reviewRequest.getUser_email()), asset.getAsset_name(), "Approved"); + emailUser(reviewRequest.getUser_email(), asset.getAsset_name(), "Approved"); notificationsService.makeNotification("Received Asset " + asset.getAsset_name(), user); deleteService.deleteAssetRequestAndSaveToSecondary(reviewRequest.getRequest_id()); return ResponseEntity.ok("given to user");