mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-11-08 18:58:07 +00:00
Would be nice to remove the references as well...
This commit is contained in:
@@ -55,9 +55,9 @@ class Rule extends Model
|
||||
*/
|
||||
public static function routeBinder(string $value): Rule
|
||||
{
|
||||
if ($guard->check()) {
|
||||
if (auth()->check()) {
|
||||
$ruleId = intval($value);
|
||||
$rule = $guard->user()->rules()->find($ruleId);
|
||||
$rule = auth()->user()->rules()->find($ruleId);
|
||||
if (!is_null($rule)) {
|
||||
return $rule;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user