scinote-web/app/views/client_api/users/invite_users.json.jbuilder

13 lines
413 B
Text
Raw Normal View History

2017-09-20 17:31:07 +08:00
json.invite_results invite_results do |invite_result|
json.status invite_result[:status]
json.alert invite_result[:alert]
json.email invite_result[:email]
2017-09-21 16:36:09 +08:00
if invite_result[:user_team].present?
json.user_role invite_result[:user_team].role
end
if invite_result[:invite_user_limit].present?
json.invite_limit invite_result[:invite_user_limit]
end
2017-09-20 17:31:07 +08:00
end
2017-09-21 16:36:09 +08:00
json.team_name team.name if team.present?