Show to superadmin group that has dialplan_all permission (#5458)

If permissions to dialplans is given to anyone other than superadmin then they should not be able to see GLOBAL dialpans unless they have dialplan_all permission as well.

* Update dialplans.php
This commit is contained in:
Stephen Forster
2025-03-21 18:49:41 +02:00
committed by GitHub
parent b82d9f17a7
commit 1f2d7e1ceb

View File

@@ -150,7 +150,7 @@
$sql .= "where true ";
}
else {
$sql .= "where (domain_uuid = :domain_uuid or domain_uuid is null) ";
$sql .= "where domain_uuid = :domain_uuid ";
$parameters['domain_uuid'] = $domain_uuid;
}
if (empty($app_uuid)) {