Hide device information If the extension type is virtual

This commit is contained in:
FusionPBX
2023-07-13 21:40:43 -06:00
committed by GitHub
parent f93fd6b00c
commit 4e861b0dcb

View File

@@ -1274,7 +1274,7 @@
echo "</tr>\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 "<tr>\n";
echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n";