fix: Display assignee only if the assignee has access to the account (#1500)
This commit is contained in:
@@ -3,7 +3,7 @@ json.meta do
|
||||
json.partial! 'api/v1/models/contact.json.jbuilder', resource: conversation.contact
|
||||
end
|
||||
json.channel conversation.inbox.try(:channel_type)
|
||||
if conversation.assignee
|
||||
if conversation.assignee&.account
|
||||
json.assignee do
|
||||
json.partial! 'api/v1/models/agent.json.jbuilder', resource: conversation.assignee
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user