summaryrefslogtreecommitdiff
path: root/app/views/users
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/users')
-rw-r--r--app/views/users/_switchboards.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/users/_switchboards.html.haml b/app/views/users/_switchboards.html.haml
index 8dca15f..183b6ae 100644
--- a/app/views/users/_switchboards.html.haml
+++ b/app/views/users/_switchboards.html.haml
@@ -1,6 +1,6 @@
-# Switchboards
-#
-- if (can?( :index, Switchboard ) && user.switchboards.any? ) || can?( :create, Switchboard )
+- if SipAccount.any? && (can?( :index, Switchboard ) && user.switchboards.any? ) || can?( :create, Switchboard )
%h2= t('switchboards.index.page_title')
- if can?( :index, Switchboard ) && user.switchboards.count > 0
= render :partial => "switchboards/index_core", :locals => {:switchboards => user.switchboards, :user => user}