diff --git a/app/views/admin/enterprises/_actions.html.haml b/app/views/admin/enterprises/_actions.html.haml index 69dd6569a8..c41cf290bc 100644 --- a/app/views/admin/enterprises/_actions.html.haml +++ b/app/views/admin/enterprises/_actions.html.haml @@ -1,8 +1,9 @@ = link_to_with_icon('icon-edit', 'Edit Profile', main_app.edit_admin_enterprise_path(enterprise), class: 'edit') %br/ -= link_to_delete_enterprise enterprise -%br/ +- if can? :destroy, enterprise + = link_to_delete_enterprise enterprise + %br/ - if enterprise.is_primary_producer = link_to_with_icon 'icon-dashboard', 'Properties', main_app.admin_enterprise_producer_properties_path(enterprise_id: enterprise.id)