Update users.php

This commit is contained in:
FusionPBX 2019-08-18 04:44:17 -06:00 committed by GitHub
parent c5082c6392
commit ab59084419
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 47 additions and 54 deletions

View File

@ -57,9 +57,6 @@
$search = strtolower($search);
}
//get the list of superadmins
$superadmins = superadmin_list($db);
//common where clause
$sql_where = "where true ";
if (!(permission_exists('user_all') && $_GET['show'] == 'all')) {
@ -174,9 +171,6 @@
if (is_array($users) && sizeof($users) != 0) {
foreach($users as $row) {
if (if_superadmin($superadmins, $row['user_uuid']) && !if_group("superadmin")) {
//hide
} else {
$tr_link = (permission_exists('user_edit')) ? "href='user_edit.php?id=".escape($row['user_uuid'])."'" : null;
echo "<tr ".$tr_link.">\n";
if (permission_exists('user_all') && $_GET['show'] == 'all') {
@ -226,7 +220,6 @@
echo "</tr>\n";
$c = $c == 0 ? 1 : 0;
}
}
unset($users, $row);
}