summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/controllers/call_forwards_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/call_forwards_controller.rb b/app/controllers/call_forwards_controller.rb
index 858ed12..cdf6c06 100644
--- a/app/controllers/call_forwards_controller.rb
+++ b/app/controllers/call_forwards_controller.rb
@@ -136,7 +136,7 @@ class CallForwardsController < ApplicationController
phone_number_destination,
]
- if @parent.try(:voicemail_accounts)
+ if @parent.class == SipAccount || @parent.class == User || @parent.class == Tenant
@parent.voicemail_accounts.each do |voicemail_account|
call_forwards_destination = CallForwardingDestination.new()
call_forwards_destination.id = "#{voicemail_account.id}:VoicemailAccount"