summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorPeter Kozak <spag@golwen.net>2013-03-28 09:12:05 +0100
committerPeter Kozak <spag@golwen.net>2013-03-28 09:12:05 +0100
commite2b4088b25551316d373eae6a4e4cc2293801058 (patch)
tree187f8305453c1978d203bade079233a6b2a157b1 /app
parentb67144bf911dd6e41775bda99646b3010195c8b3 (diff)
parent accounts fixed
Diffstat (limited to 'app')
-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"