Update users.php

This commit is contained in:
FusionPBX 2019-08-18 04:59:07 -06:00 committed by GitHub
parent ab59084419
commit 8da024025f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

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