Update the permissions app_defaults to be more efficient

This commit is contained in:
FusionPBX
2025-11-13 08:34:53 -07:00
committed by GitHub
parent f3bbe8770e
commit 69db088925

View File

@@ -3,15 +3,9 @@
if ($domains_processed == 1) { if ($domains_processed == 1) {
//add the permissions //add the permissions
if (empty($database_permissions)) {
$sql = "select * from v_permissions \n"; $sql = "select * from v_permissions \n";
$database_permissions = $database->select($sql, null, 'all'); $database_permissions = $database->select($sql, null, 'all');
//get the $apps array from the installed apps from the core and mod directories
$config_list = glob($_SERVER["DOCUMENT_ROOT"].PROJECT_PATH."/*/*/app_config.php");
$x = 0;
foreach ($config_list as $config_path) {
include($config_path);
$x++;
} }
//restore default permissions //restore default permissions