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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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";