From 1f2d7e1ceb888f366a5fcfd4e3e3eca32251163f Mon Sep 17 00:00:00 2001 From: Stephen Forster Date: Fri, 21 Mar 2025 18:49:41 +0200 Subject: [PATCH] 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 --- app/dialplans/dialplans.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/dialplans/dialplans.php b/app/dialplans/dialplans.php index 8b43fee286..e10a1f9ceb 100644 --- a/app/dialplans/dialplans.php +++ b/app/dialplans/dialplans.php @@ -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)) {