diff --git a/app/devices/app_config.php b/app/devices/app_config.php index 22c3549470..de9b6d5087 100644 --- a/app/devices/app_config.php +++ b/app/devices/app_config.php @@ -121,6 +121,10 @@ $apps[$x]['permissions'][$y]['groups'][] = "superadmin"; $apps[$x]['permissions'][$y]['groups'][] = "admin"; $y++; + $apps[$x]['permissions'][$y]['name'] = "device_line_port"; + $apps[$x]['permissions'][$y]['groups'][] = "superadmin"; + $apps[$x]['permissions'][$y]['groups'][] = "admin"; + $y++; $apps[$x]['permissions'][$y]['name'] = "device_line_shared"; $apps[$x]['permissions'][$y]['groups'][] = "superadmin"; $y++; diff --git a/app/devices/device_edit.php b/app/devices/device_edit.php index f45281c94e..a2c0706271 100644 --- a/app/devices/device_edit.php +++ b/app/devices/device_edit.php @@ -976,7 +976,9 @@ if (permission_exists('device_line_password')) { echo " ".$text['label-password']."\n"; } - echo " ".$text['label-sip_port']."\n"; + if (permission_exists('device_line_port')) { + echo " ".$text['label-sip_port']."\n"; + } if (permission_exists('device_line_transport')) { echo " ".$text['label-sip_transport']."\n"; } @@ -1128,9 +1130,11 @@ echo " \n"; } - echo " \n"; - echo " \n"; - echo " \n"; + if (permission_exists('device_line_port')) { + echo " \n"; + echo " \n"; + echo " \n"; + } if (permission_exists('device_line_transport')) { echo " \n";