Skip to content

Commit

Permalink
add right role check for get of completed
Browse files Browse the repository at this point in the history
  • Loading branch information
Miguel7373 committed Jan 9, 2025
1 parent e28a0cd commit 084d4a9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public void deleteCompletedByObjectiveId(Long objectiveId) {

public Completed getCompletedByObjectiveId(Long objectiveId) {
AuthorizationUser authorizationUser = authorizationService.updateOrAddAuthorizationUser();
authorizationService.hasRoleDeleteByObjectiveId(objectiveId, authorizationUser);
authorizationService.hasRoleReadByObjectiveId(objectiveId, authorizationUser);
return completedBusinessService.getCompletedByObjectiveId(objectiveId);
}
}

0 comments on commit 084d4a9

Please sign in to comment.