mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-11-08 10:48:13 +00:00
Code clean up
This commit is contained in:
@@ -11,7 +11,6 @@ declare(strict_types = 1);
|
||||
|
||||
namespace FireflyIII\Models;
|
||||
|
||||
use Auth;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\SoftDeletes;
|
||||
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
|
||||
@@ -60,7 +59,7 @@ class Rule extends Model
|
||||
public static function routeBinder(Rule $value)
|
||||
{
|
||||
if (auth()->check()) {
|
||||
if ($value->user_id == Auth::user()->id) {
|
||||
if ($value->user_id == auth()->user()->id) {
|
||||
return $value;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user