forked from External/greenlight
Bug fixes for roles (#729)
This commit is contained in:
committed by
Jesus Federico
parent
6e73bbdb5a
commit
6d6ac3efdd
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user