You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please complete the following fields as applicable:
What version of the DMPRoadmap code are you running? (e.g. v2.2.0)
3.0.2
Expected behaviour:
The mail template that is sent to user whose permissions have been
changed should be addressed to that user, not to the user that changed
it.
Actual behaviour:
It addresses the user that changed it.
RolesController#update supplies the current_user as second argument to UserMailer.permissions_changed_notification, so @username = user.name becomes the name of the user that made the change.
Should be @username = role.user.name? And maybe rename the second argument to current_user to make
it clear what that argument is for.
The text was updated successfully, but these errors were encountered:
…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
Please complete the following fields as applicable:
What version of the DMPRoadmap code are you running? (e.g. v2.2.0)
3.0.2
Expected behaviour:
The mail template that is sent to user whose permissions have been
changed should be addressed to that user, not to the user that changed
it.
Actual behaviour:
It addresses the user that changed it.
RolesController#update supplies the
current_user
as second argument toUserMailer.permissions_changed_notification
, so@username = user.name
becomes the name of the user that made the change.Should be
@username = role.user.name
? And maybe rename the second argument tocurrent_user
to makeit clear what that argument is for.
The text was updated successfully, but these errors were encountered: