mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-19 05:09:38 +02:00
Pass in user role to Intercom
This commit is contained in:
parent
ad5b0b8b7d
commit
46e86a9a11
1 changed files with 2 additions and 1 deletions
|
@ -54,7 +54,8 @@ if ENV["INTERCOM_APP_ID"].present? && ENV["INTERCOM_IDENTITY_VERIFICATION_KEY"].
|
|||
#
|
||||
config.user.custom_data = {
|
||||
family_id: Proc.new { Current.family.id },
|
||||
name: Proc.new { Current.user.display_name if Current.user.display_name != Current.user.email }
|
||||
name: Proc.new { Current.user.display_name if Current.user.display_name != Current.user.email },
|
||||
role: Proc.new { Current.user.role }
|
||||
}
|
||||
|
||||
# == Current company method/variable
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue