mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-04 18:53:49 +00:00
Update install_fusionpbx.php
This commit is contained in:
@@ -724,7 +724,7 @@ include "root.php";
|
||||
unset($sql);
|
||||
}
|
||||
$this->write_progress("\tChecking if superuser is in the correct group");
|
||||
$sql = "select count(*) as count from v_group_users ";
|
||||
$sql = "select count(*) as count from v_user_groups ";
|
||||
$sql .= "where domain_uuid = '".$this->global_settings->domain_uuid()."' ";
|
||||
$sql .= "and user_uuid = '".$this->admin_uuid."' ";
|
||||
$sql .= "and group_name = 'superadmin' ";
|
||||
@@ -735,7 +735,7 @@ include "root.php";
|
||||
$row = $prep_statement->fetch(PDO::FETCH_ASSOC);
|
||||
if ($row['count'] == 0) {
|
||||
//add the user to the superadmin group
|
||||
$sql = "insert into v_group_users ";
|
||||
$sql = "insert into v_user_groups ";
|
||||
$sql .= "(";
|
||||
$sql .= "group_user_uuid, ";
|
||||
$sql .= "domain_uuid, ";
|
||||
@@ -770,7 +770,7 @@ include "root.php";
|
||||
$_SESSION['event_socket_password'] = $this->global_settings->switch_event_password();
|
||||
|
||||
//get the groups assigned to the user and then set the groups in $_SESSION["groups"]
|
||||
$sql = "SELECT * FROM v_group_users ";
|
||||
$sql = "SELECT * FROM v_user_groups ";
|
||||
$sql .= "where domain_uuid=:domain_uuid ";
|
||||
$sql .= "and user_uuid=:user_uuid ";
|
||||
$prep_statement = $this->dbh->prepare(check_sql($sql));
|
||||
|
||||
Reference in New Issue
Block a user