logs editor
This commit is contained in:
@@ -19,11 +19,8 @@ class SoloUsuarioAdministrador
|
||||
{
|
||||
if (Auth::user()->rol->nombre =="administrador" || Auth::user()->rol->nombre == "super" || Auth::user()->rol->nombre == "editor") {
|
||||
return $next($request);
|
||||
|
||||
} else {
|
||||
|
||||
return redirect()->back()->with("mensaje", "No puedes acceder al módulo seleccionado");
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -114,6 +114,10 @@ x-data="{ menuG:false}"
|
||||
<a class="block cursor-pointer text-center hover:bg-[#d1d3e1] border-b w-full px-3 py-1" href="{{ route('utilidades') }}">Utilidades</a>
|
||||
<a class="block cursor-pointer hover:rounded-b-md rounded-b-md text-center hover:bg-[#d1d3e1] w-full px-3 py-1" href="{{ route('configuracion') }}">Configuración</a>
|
||||
@endif
|
||||
@if (auth()->user()->rol->nombre == "editor")
|
||||
<a class="block cursor-pointer text-center hover:bg-[#d1d3e1] border-b w-full px-3 py-1" href="{{ route('logGeneral') }}">Log general</a>
|
||||
<a class="block cursor-pointer text-center hover:bg-[#d1d3e1] border-b w-full px-3 py-1" href="{{ route('logs') }}">Logs cuentas</a>
|
||||
@endif
|
||||
</p>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
@@ -79,5 +79,7 @@ Route::middleware(["auth", "solo_usuario_administrador"])->group(function () {
|
||||
Route::get('/utilidades',[MenuController::class,'showutilidad' ])->name('utilidades');
|
||||
});
|
||||
|
||||
Route::any('/logs',[MenuController::class,'showlogs' ])->name('logs');
|
||||
Route::any('/log-general',[MenuController::class,'showLogGeneral' ])->name('logGeneral');
|
||||
|
||||
require __DIR__.'/auth.php';
|
||||
|
||||
Reference in New Issue
Block a user