Skip to content

Conversation

@johnpinto1
Copy link
Contributor

@johnpinto1 johnpinto1 commented Oct 25, 2021

…correct user

Fixes #2955 .

Changes:

  • Added an instance variable @recepient = @role.user to
    permissions_change_notification() method in roles_controller and removed
    instance variable @username and replaced @role.user.email by
    @recepient.email.
  • Replaced username with recepientname = @recepient.name in permissions_change_notification.html.erb

…orrect user

Changes:
 - Added an instance variable @recepient = @role.user to
permissions_change_notification() method in roles_controller and removed
instance variable @username and replaced @role.user.email by
@recepient.email.
 - Replaced username with recepientname = @recepient.name in permissions_change_notification.html.erb
@johnpinto1 johnpinto1 force-pushed the bug_2955_usermailer_permissions_change_notification_receives_incorrect_user branch from 68a444e to 7e7e558 Compare October 25, 2021 11:25
Copy link
Contributor

@briri briri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good @johnpinto1. Thanks for patching this!

@briri
Copy link
Contributor

briri commented Oct 25, 2021

rubocop issues are a known issue, so going to merge this

@briri briri merged commit 06c65a0 into development Oct 25, 2021
@briri briri deleted the bug_2955_usermailer_permissions_change_notification_receives_incorrect_user branch October 25, 2021 15:25
@johnpinto1
Copy link
Contributor Author

@briri Cheers!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants