Fixed Issue 324 and Issue 329 - Assigned extensions now displayed to a User upon initial login.
This commit is contained in:
parent
566f0a1034
commit
55de548a70
|
|
@ -42,8 +42,8 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
//additional includes
|
//additional includes
|
||||||
require_once "resources/require.php";
|
|
||||||
require_once "resources/check_auth.php";
|
require_once "resources/check_auth.php";
|
||||||
|
load_extensions();
|
||||||
require_once "resources/header.php";
|
require_once "resources/header.php";
|
||||||
|
|
||||||
//add multi-lingual support
|
//add multi-lingual support
|
||||||
|
|
|
||||||
|
|
@ -160,6 +160,8 @@ foreach($settings_array as $name => $value) {
|
||||||
}
|
}
|
||||||
|
|
||||||
//get the extensions that are assigned to this user
|
//get the extensions that are assigned to this user
|
||||||
|
function load_extensions() {
|
||||||
|
global $db;
|
||||||
if (file_exists($_SERVER['DOCUMENT_ROOT'].PROJECT_PATH."/app/extensions/app_config.php")) {
|
if (file_exists($_SERVER['DOCUMENT_ROOT'].PROJECT_PATH."/app/extensions/app_config.php")) {
|
||||||
if (strlen($_SESSION["domain_uuid"]) > 0 && strlen($_SESSION["user_uuid"]) > 0 && count($_SESSION['user']['extension']) == 0) {
|
if (strlen($_SESSION["domain_uuid"]) > 0 && strlen($_SESSION["user_uuid"]) > 0 && count($_SESSION['user']['extension']) == 0) {
|
||||||
//get the user extension list
|
//get the user extension list
|
||||||
|
|
@ -193,6 +195,8 @@ foreach($settings_array as $name => $value) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
load_extensions();
|
||||||
|
|
||||||
function build_menu() {
|
function build_menu() {
|
||||||
global $v_menu_tab_show;
|
global $v_menu_tab_show;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue