Update users.php

This commit is contained in:
FusionPBX
2019-08-18 04:59:07 -06:00
committed by GitHub
parent f44ebf4076
commit 5e217d2017

View File

@@ -73,7 +73,12 @@
$sql_where .= ") ";
$parameters['search'] = '%'.$search.'%';
}
$sql_where .= "and group_level <= :group_level ";
$sql_where .= "and ( ";
$sql_where .= " group_level <= :group_level ";
if (permission_exists('user_all')) {
$sql_where .= " or group_level is null ";
}
$sql_where .= ") ";
$parameters['group_level'] = $_SESSION['user']['group_level'];
//get the user count from the database