This commit is contained in:
freek 2018-11-26 00:57:22 +01:00
parent e9a7afedd1
commit 7c0eadec2f
2 changed files with 2 additions and 2 deletions

View File

@ -8,6 +8,6 @@ class Authorize
{
public function handle($request, $next)
{
return Gate::check('viewWebSocketDashboard') ? $next($request) : abort(403);
return Gate::check('viewWebSocketsDashboard') ? $next($request) : abort(403);
}
}

View File

@ -63,7 +63,7 @@ class WebSocketsServiceProvider extends ServiceProvider
protected function registerDashboardGate()
{
Gate::define('viewWebSocketDashboard', function ($user = null) {
Gate::define('viewWebSocketsDashboard', function ($user = null) {
return app()->environment('local');
});
}