mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-01-07 06:31:22 +00:00
Throw some exceptions so I can spot deprecated code.
This commit is contained in:
@@ -55,7 +55,7 @@ class AccountController extends Controller
|
||||
$this->middleware(
|
||||
function ($request, $next) {
|
||||
$this->repository = app(AccountRepositoryInterface::class);
|
||||
die('uses old administration ID check, needs to be updated.2');
|
||||
throw new FireflyException('uses old administration ID check, needs to be updated.2');
|
||||
$this->repository->setAdministrationId(auth()->user()->user_group_id);
|
||||
return $next($request);
|
||||
}
|
||||
|
||||
@@ -78,7 +78,7 @@ class BudgetController extends Controller
|
||||
*/
|
||||
public function dashboard(DateRequest $request): JsonResponse
|
||||
{
|
||||
die('uses old administration ID check, needs to be updated.3');
|
||||
throw new FireflyException('uses old administration ID check, needs to be updated.3');
|
||||
// get user.
|
||||
/** @var User $user */
|
||||
$user = auth()->user();
|
||||
|
||||
@@ -53,7 +53,7 @@ class CategoryController extends Controller
|
||||
parent::__construct();
|
||||
$this->middleware(
|
||||
function ($request, $next) {
|
||||
die('uses old administration ID check, needs to be updated.4');
|
||||
throw new FireflyException('uses old administration ID check, needs to be updated.4');
|
||||
$this->accountRepos = app(AccountRepositoryInterface::class);
|
||||
$this->currencyRepos = app(CurrencyRepositoryInterface::class);
|
||||
$this->accountRepos->setAdministrationId(auth()->user()->user_group_id);
|
||||
|
||||
Reference in New Issue
Block a user