mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-11-01 19:47:11 +00:00
Fix code
This commit is contained in:
@@ -171,7 +171,7 @@ class LinkController extends Controller
|
||||
|
||||
Log::channel('audit')->info('User on index of link types in admin.');
|
||||
$linkTypes->each(
|
||||
function (LinkType $linkType) {
|
||||
function (LinkType $linkType): void {
|
||||
$linkType->journalCount = $this->repository->countJournals($linkType);
|
||||
}
|
||||
);
|
||||
|
||||
@@ -173,7 +173,7 @@ class UserController extends Controller
|
||||
|
||||
// add meta stuff.
|
||||
$users->each(
|
||||
function (User $user) {
|
||||
function (User $user): void {
|
||||
$user->isAdmin = $this->repository->hasRole($user, 'owner');
|
||||
$user->has2FA = null !== $user->mfa_secret;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user