Browse Source

[4.3] MSPB-63: Add new device for device_type = application (#188)

4.3
Pilar Candia 6 years ago
committed by GitHub
parent
commit
75adae75fa
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      submodules/users/users.js

+ 3
- 2
submodules/users/users.js View File

@ -36,7 +36,8 @@ define(function(require) {
'sip_device': 'icon-telicon-voip-phone',
'sip_uri': 'icon-telicon-voip-phone',
'fax': 'icon-telicon-fax',
'ata': 'icon-telicon-ata'
'ata': 'icon-telicon-ata',
'application': 'icon-telicon-apps'
},
/* Users */
@ -461,7 +462,7 @@ define(function(require) {
var userId = device.owner_id;
if (userId in mapUsers) {
var isRegistered = device.enabled && (['sip_device', 'smartphone', 'softphone', 'fax', 'ata'].indexOf(device.device_type) >= 0 ? registeredDevices.indexOf(device.id) >= 0 : true);
var isRegistered = device.enabled && (['sip_device', 'smartphone', 'softphone', 'fax', 'ata', 'application'].indexOf(device.device_type) >= 0 ? registeredDevices.indexOf(device.id) >= 0 : true);
var isEnabled = device.enabled;
if (mapUsers[userId].extra.devices.length >= 2) {


Loading…
Cancel
Save