% customer = context[:customer] %> <% if User.current.allowed_to?(:add_customer_appointments, nil, global: true) %>
<%= link_to l(:label_add_appointment), new_customer_appointment_path(customer_id: customer.id), target: :_blank, id: :appointment_link %>
<% end %>