Bug fixes for roles (#729)

This commit is contained in:
shawn-higgins1
2019-08-07 11:19:16 -04:00
committed by Jesus Federico
parent 6e73bbdb5a
commit 6d6ac3efdd
6 changed files with 46 additions and 28 deletions

View File

@ -42,7 +42,7 @@ class UserMailer < ApplicationMailer
@admin_url = url + "admins"
@image = image
@color = color
@role = role.name
@role = translated_role_name(role)
mail to: user.email, subject: t('mailer.user.promoted.subtitle', role: translated_role_name(role))
end
@ -51,7 +51,7 @@ class UserMailer < ApplicationMailer
@root_url = url
@image = image
@color = color
@role = role.name
@role = translated_role_name(role)
mail to: user.email, subject: t('mailer.user.demoted.subtitle', role: translated_role_name(role))
end