mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 09:03:49 +00:00
Fixed Issue 324 and Issue 329 - Assigned extensions now displayed to a User upon initial login.
This commit is contained in:
@@ -160,6 +160,8 @@ foreach($settings_array as $name => $value) {
|
||||
}
|
||||
|
||||
//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 (strlen($_SESSION["domain_uuid"]) > 0 && strlen($_SESSION["user_uuid"]) > 0 && count($_SESSION['user']['extension']) == 0) {
|
||||
//get the user extension list
|
||||
@@ -193,6 +195,8 @@ foreach($settings_array as $name => $value) {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
load_extensions();
|
||||
|
||||
function build_menu() {
|
||||
global $v_menu_tab_show;
|
||||
|
||||
Reference in New Issue
Block a user