From 4e861b0dcb8998a71c045f03207fb98aaee91fab Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Thu, 13 Jul 2023 21:40:43 -0600 Subject: [PATCH] Hide device information If the extension type is virtual --- app/extensions/extension_edit.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/extensions/extension_edit.php b/app/extensions/extension_edit.php index 79fcfd7d06..ef1e336100 100644 --- a/app/extensions/extension_edit.php +++ b/app/extensions/extension_edit.php @@ -1274,7 +1274,7 @@ echo "\n"; } - if (permission_exists('device_edit')) { + if (permission_exists('device_edit') && (empty($extension_type) || $extension_type != 'virtual')) { if (is_dir($_SERVER["DOCUMENT_ROOT"].PROJECT_PATH.'/app/devices')) { echo "\n"; echo "\n";