mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-05 12:12:18 +00:00
Is now capable of updating transactions over the API.
This commit is contained in:
@@ -97,8 +97,18 @@ class JournalServiceProvider extends ServiceProvider
|
||||
|
||||
private function registerGroupRepository()
|
||||
{
|
||||
// password verifier thing
|
||||
$this->app->bind(TransactionGroupRepositoryInterface::class, TransactionGroupRepository::class);
|
||||
$this->app->bind(
|
||||
TransactionGroupRepositoryInterface::class,
|
||||
function (Application $app) {
|
||||
/** @var TransactionGroupRepositoryInterface $repository */
|
||||
$repository = app(TransactionGroupRepository::class);
|
||||
if ($app->auth->check()) {
|
||||
$repository->setUser(auth()->user());
|
||||
}
|
||||
|
||||
return $repository;
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user