diff --git a/app/views/organizations/_nav.html.haml b/app/views/organizations/_nav.html.haml index 623e1e21..77c834a2 100644 --- a/app/views/organizations/_nav.html.haml +++ b/app/views/organizations/_nav.html.haml @@ -4,7 +4,8 @@ %li.navBar__item= link_to "Mail Servers", organization_root_path(organization), :class => ['navBar__link', active_nav == :servers ? 'is-active' : ''] %li.navBar__item= link_to "Domains", organization_domains_path(organization), :class => ['navBar__link', active_nav == :domains ? 'is-active' : ''] %li.navBar__item= link_to "Settings", organization_settings_path(organization), :class => ['navBar__link', active_nav == :settings ? 'is-active' : ''] - %li.navBar__item= link_to "IPs", organization_ip_pools_path(organization), :class => ['navBar__link', active_nav == :ips ? 'is-active' : ''] + - if Postal.ip_pools? + %li.navBar__item= link_to "IPs", organization_ip_pools_path(organization), :class => ['navBar__link', active_nav == :ips ? 'is-active' : ''] %li.navBar__item= link_to "Users", organization_users_path(organization), :class => ['navBar__link', active_nav == :users ? 'is-active' : ''] - if organization.owner?(current_user) %li.navBar__item= link_to "Delete Organization", organization_delete_path(organization), :class => ['navBar__link', active_nav == :delete ? 'is-active' : ''] diff --git a/app/views/servers/_settings_header.html.haml b/app/views/servers/_settings_header.html.haml index 0de077d1..5105b948 100644 --- a/app/views/servers/_settings_header.html.haml +++ b/app/views/servers/_settings_header.html.haml @@ -4,7 +4,8 @@ %li.navBar__item= link_to "Spam", [:spam, organization, @server], :class => ['navBar__link', active_nav == :spam ? 'is-active' : ''] %li.navBar__item= link_to "Retention", [:retention, organization, @server], :class => ['navBar__link', active_nav == :retention ? 'is-active' : ''] %li.navBar__item= link_to "Send Limit", [:limits, organization, @server], :class => ['navBar__link', active_nav == :limits ? 'is-active' : ''] - %li.navBar__item= link_to "IP Rules", [organization, @server, :ip_pool_rules], :class => ['navBar__link', active_nav == :ip_pool_rules ? 'is-active' : ''] + - if Postal.ip_pools? + %li.navBar__item= link_to "IP Rules", [organization, @server, :ip_pool_rules], :class => ['navBar__link', active_nav == :ip_pool_rules ? 'is-active' : ''] - if current_user.admin? %li.navBar__item= link_to "Admin", [:admin, organization, @server], :class => ['navBar__link', active_nav == :admin ? 'is-active' : ''] - if organization.admin?(current_user)