diff options
author | spag <spag@golwen.net> | 2012-12-31 09:31:43 +0100 |
---|---|---|
committer | spag <spag@golwen.net> | 2012-12-31 09:31:43 +0100 |
commit | a3bf87ed7d6d693c28d081c2e7e8d8e55373cae4 (patch) | |
tree | 1348b7ce231ec563ca3eee274caf1ca0632704ac /app | |
parent | aed84444142604a62e37e57acfaaf957219e2c8d (diff) |
show hot deskable option for user sip accounts only
Diffstat (limited to 'app')
-rw-r--r-- | app/controllers/sip_accounts_controller.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/controllers/sip_accounts_controller.rb b/app/controllers/sip_accounts_controller.rb index 1f3166e..8292a74 100644 --- a/app/controllers/sip_accounts_controller.rb +++ b/app/controllers/sip_accounts_controller.rb @@ -20,7 +20,9 @@ class SipAccountsController < ApplicationController @sip_account.clip = DEFAULT_CLIP_SETTING @sip_account.voicemail_pin = random_pin @sip_account.callforward_rules_act_per_sip_account = CALLFORWARD_RULES_ACT_PER_SIP_ACCOUNT_DEFAULT - @sip_account.hotdeskable = true + if @parent.class == User + @sip_account.hotdeskable = true + end # Make sure that we don't use an already taken auth_name # |