mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Update check_auth.php
This commit is contained in:
@@ -116,7 +116,12 @@
|
||||
}
|
||||
$prep_statement_sub = $db->prepare($sql);
|
||||
$prep_statement_sub->execute();
|
||||
$_SESSION['permissions'] = $prep_statement_sub->fetchAll(PDO::FETCH_NAMED);
|
||||
$result = $prep_statement_sub->fetchAll(PDO::FETCH_NAMED);
|
||||
if (is_array($result)) {
|
||||
foreach ($result as $row) {
|
||||
$_SESSION['permissions'][$row["permission_name"]] = true;
|
||||
}
|
||||
}
|
||||
unset($sql, $prep_statement_sub);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user