mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-04 11:48:05 +00:00
Fixes the tests.
This commit is contained in:
@@ -10,7 +10,6 @@ class BaseController extends Controller
|
||||
*
|
||||
*/
|
||||
public function __construct() {
|
||||
parent::__construct();
|
||||
Event::fire('limits.check');
|
||||
}
|
||||
/**
|
||||
|
@@ -19,10 +19,14 @@ class EloquentLimitTrigger
|
||||
*/
|
||||
public function checkRepeatingLimits()
|
||||
{
|
||||
$limits = \Limit::leftJoin('components', 'components.id', '=', 'limits.component_id')
|
||||
->where('components.user_id', \Auth::user()->id)
|
||||
->where('limits.repeats', 1)
|
||||
->get(['limits.*']);
|
||||
if (\Auth::check()) {
|
||||
$limits = \Limit::leftJoin('components', 'components.id', '=', 'limits.component_id')
|
||||
->where('components.user_id', \Auth::user()->id)
|
||||
->where('limits.repeats', 1)
|
||||
->get(['limits.*']);
|
||||
} else {
|
||||
$limits = [];
|
||||
}
|
||||
|
||||
/** @var \Limit $limit */
|
||||
foreach ($limits as $limit) {
|
||||
|
Reference in New Issue
Block a user