diff --git a/app/Http/Middleware/CheckAdminRole.php b/app/Http/Middleware/CheckAdminRole.php index 97c5764..fdc153f 100644 --- a/app/Http/Middleware/CheckAdminRole.php +++ b/app/Http/Middleware/CheckAdminRole.php @@ -10,7 +10,7 @@ class CheckAdminRole { public function handle(Request $request, Closure $next): Response { - if (!auth()->check() || auth()->user()->rol !== 'admin') { + if (!auth()->check() || auth()->user()->tipos_id !== 1) { return redirect()->route('dashboard') ->with('error', 'No tienes permisos de administrador para acceder a esta sección.'); }