Migration complete
This commit is contained in:
@@ -5,6 +5,7 @@ namespace App\Providers;
|
||||
use App\Auth\XenForoGuard;
|
||||
use App\Auth\XenForoUser;
|
||||
use App\Policies\TempFilePolicy;
|
||||
use App\Proxy\VisitorProxy;
|
||||
use App\Services\TemporaryFileService;
|
||||
use App\Support\XenForoCauserResolver;
|
||||
use Illuminate\Support\Facades\Gate;
|
||||
@@ -39,5 +40,10 @@ class AppServiceProvider extends ServiceProvider
|
||||
Gate::define('is-mod', function (XenForoUser $user) {
|
||||
return $user->is_moderator === 1;
|
||||
});
|
||||
|
||||
\View::composer('*', function ($view) {
|
||||
$view->with('VISITOR', new VisitorProxy( \Auth::user() ) );
|
||||
});
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user