Commit 6fee5cc4 authored by Roberto P. Rubio's avatar Roberto P. Rubio
Browse files

list users in admin/users by default if number of users less to 40

parent c614b484
......@@ -1930,6 +1930,9 @@ sub admin {
$c->stash(name => $c->param('name' or ''));
if ( $c->param('name') ) {
$c->stash(list_users => $RAVADA->list_users($c->param('name') ))
} else {
my $users = $RAVADA->list_users();
$c->stash(list_users => $users) if (($users) && (scalar(@$users) < 40));
}
}
if ($page eq 'machines') {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment