mirror of https://github.com/itflow-org/itflow
Fix Views based off new role Permissions
This commit is contained in:
parent
2c1cb0f3b4
commit
a96d43a017
|
|
@ -222,7 +222,7 @@ $location_phone = formatPhoneNumber($location_phone);
|
|||
}
|
||||
?>
|
||||
</div>
|
||||
<?php if($session_user_role == 1 OR $session_user_role > 3){ ?>
|
||||
<?php if($session_user_role == 1 OR $session_user_role > 2){ ?>
|
||||
<div class="col-md-3 border-left">
|
||||
<h4 class="text-secondary">Billing</h4>
|
||||
<h6 class="ml-1 text-secondary">Paid <div class="text-dark float-right"> <?php echo numfmt_format_currency($currency_format, $amount_paid, $client_currency_code); ?></div></h6>
|
||||
|
|
|
|||
|
|
@ -206,7 +206,7 @@
|
|||
</a>
|
||||
</li>
|
||||
|
||||
<?php if($session_user_role == 1 OR $session_user_role > 3){ ?>
|
||||
<?php if($session_user_role == 1 OR $session_user_role > 2){ ?>
|
||||
|
||||
<li class="nav-header mt-3">ACCOUNTING</li>
|
||||
|
||||
|
|
|
|||
|
|
@ -93,7 +93,7 @@
|
|||
|
||||
<?php } ?>
|
||||
|
||||
<?php if($session_user_role == 1 OR $session_user_role > 3){ ?>
|
||||
<?php if($session_user_role == 1 OR $session_user_role > 2){ ?>
|
||||
|
||||
<li class="nav-header mt-3">SALES</li>
|
||||
<li class="nav-item">
|
||||
|
|
@ -202,7 +202,7 @@
|
|||
|
||||
<?php } ?>
|
||||
|
||||
<?php if($session_user_role > 3){ ?>
|
||||
<?php if($session_user_role > 2){ ?>
|
||||
|
||||
<li class="nav-header mt-3">SETTINGS</li>
|
||||
|
||||
|
|
|
|||
|
|
@ -88,8 +88,8 @@
|
|||
</div>
|
||||
<select class="form-control select2" name="role" required>
|
||||
<option value="">- Role -</option>
|
||||
<option <?php if($user_role == 3){ echo "selected"; } ?> value="5">Administrator</option>
|
||||
<option <?php if($user_role == 2){ echo "selected"; } ?> value="4">Technician</option>
|
||||
<option <?php if($user_role == 3){ echo "selected"; } ?> value="3">Administrator</option>
|
||||
<option <?php if($user_role == 2){ echo "selected"; } ?> value="2">Technician</option>
|
||||
<option <?php if($user_role == 1){ echo "selected"; } ?> value="1">Accountant</option>
|
||||
</select>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -101,13 +101,6 @@
|
|||
}
|
||||
$user_company_access = implode(',',$user_company_access_array);
|
||||
|
||||
$user_client_access_sql = mysqli_query($mysqli,"SELECT client_id FROM user_clients WHERE user_id = $user_id");
|
||||
$user_client_access_array = array();
|
||||
while($row = mysqli_fetch_array($user_client_access_sql)){
|
||||
$user_client_access_array[] = $row['client_id'];
|
||||
}
|
||||
$user_client_access = implode(',',$user_client_access_array);
|
||||
|
||||
$user_initials = initials($user_name);
|
||||
|
||||
$sql_last_login = mysqli_query($mysqli,"SELECT * FROM logs
|
||||
|
|
|
|||
Loading…
Reference in New Issue