diff --git a/README.md b/README.md index ba8b2b5..229e413 100644 --- a/README.md +++ b/README.md @@ -91,13 +91,13 @@ $panel->plugin( ## Gates & Authorization When using filament debuggers (Horizon, Telescope & Pulse) in production environment, we need to make sure that they are accessible to the authorized filament admin user. -To achive this, we need to use filament default authorization guard and the permissions provided in this package by overidding the `gate()` and `authorization()` methods inside the HorizonServiceProvider, TelescopeServiceProvider and PulseServiceProvider respectively. +To achive this, we need to use filament default authorization guard and your application defined permissions provided by overidding the `gate()` and `authorization()` methods inside the HorizonServiceProvider, TelescopeServiceProvider and PulseServiceProvider respectively. ```php protected function gate() { Gate::define('viewHorizon', function ($user) { - return $user->can(config('filament-debugger.permissions.horizon')); + return $user->can('view.debuggers); }); }