mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-19 10:53:37 +00:00
Better view for admin [skip ci]
This commit is contained in:
@@ -35,16 +35,7 @@ class UserController extends Controller
|
||||
$confirmAccount = env('MUST_CONFIRM_ACCOUNT', false);
|
||||
|
||||
// list all users:
|
||||
$all = $repository->all();
|
||||
|
||||
// not deleted users:
|
||||
$users = $all->filter(
|
||||
function (User $user) {
|
||||
if (!(intval($user->blocked) === 1 && is_null($user->blocked_code))) {
|
||||
return $user;
|
||||
}
|
||||
}
|
||||
);
|
||||
$users = $repository->all();
|
||||
|
||||
// add meta stuff.
|
||||
$users->each(
|
||||
|
Reference in New Issue
Block a user