This commit is contained in:
2025-10-16 13:02:59 +00:00
parent 3c14d7b5b3
commit 5d2d6d0b0d
2 changed files with 2 additions and 2 deletions

View File

@@ -167,7 +167,7 @@ $grandTotal = [
foreach($types as $type){
$typeLike = "%$type%";
if($_SESSION['type']==='admin'){
if($_SESSION['type']==='admin' || $_SESSION['type']==='bm'){
$sql = "SELECT * FROM `" . $GLOBALS['arif_ac'] . "` WHERE `AA_TYPE` LIKE ? AND (`STATUS` IS NULL OR (`STATUS`!='closed' AND `STATUS`!='matured')) ORDER BY `AA_ID` DESC";
$stmt = $conn->prepare($sql);
$stmt->bind_param("s", $typeLike);

View File

@@ -13,7 +13,7 @@
<?php
// ---- if Admin then Agent dropdown and filter with agent----
if($_SESSION['type'] === 'admin'){
if($_SESSION['type'] === 'admin' || $_SESSION['type'] === 'bm' ){
$conn = new mysqli($GLOBALS['host'], $GLOBALS['user'], $GLOBALS['pass'], $GLOBALS['db']);
if ($conn->connect_error) die("Connection failed: " . $conn->connect_error);