Update users.php
This commit is contained in:
parent
c5082c6392
commit
ab59084419
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue