mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Update the permissions app_defaults to be more efficient
This commit is contained in:
@@ -3,15 +3,9 @@
|
|||||||
if ($domains_processed == 1) {
|
if ($domains_processed == 1) {
|
||||||
|
|
||||||
//add the permissions
|
//add the permissions
|
||||||
$sql = "select * from v_permissions \n";
|
if (empty($database_permissions)) {
|
||||||
$database_permissions = $database->select($sql, null, 'all');
|
$sql = "select * from v_permissions \n";
|
||||||
|
$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
|
||||||
|
|||||||
Reference in New Issue
Block a user