Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
Marc Gorzala committed Jan 14, 2024
1 parent 4b20da3 commit f84fde7
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ public class ContactService {
private final ApplicationEventPublisher applicationEventPublisher;

void send(ContactDto contactDto, AuthenticatedUser authenticatedUserOfSender) {
log.info("Having authorities: {}", authenticatedUserOfSender.getAuthorities());
String senderMailAddress = authenticatedUserOfSender.getAuthorities().contains(ROLE_USER)
? authenticatedUserOfSender.getEmail()
: contactDto.getSender();
Expand Down

0 comments on commit f84fde7

Please sign in to comment.