Commit Bulk
This commit is contained in:
10
roles.php
10
roles.php
@@ -9,7 +9,7 @@ if (!isset($_SESSION['user'])){
|
||||
else
|
||||
$user = unserialize($_SESSION['user']);
|
||||
$user->access();
|
||||
if(!$user->admin && $user->acceso == 'n'){
|
||||
if($user->acceso == null){
|
||||
header('Location: main.php?error=1');
|
||||
}else{
|
||||
$user->print_to_log('Roles');
|
||||
@@ -40,11 +40,7 @@ echo $fac;
|
||||
"Gestión de Checador "
|
||||
);
|
||||
$user->access();
|
||||
$fs_roles = query(
|
||||
"SELECT * FROM rol ORDER BY rol_titulo",
|
||||
null,
|
||||
false
|
||||
);
|
||||
$fs_roles = $db->orderBy('rol_titulo')->get('rol');
|
||||
?>
|
||||
<main class="content marco">
|
||||
<?php if($user->acceso == 'w'){?>
|
||||
@@ -60,7 +56,7 @@ echo $fac;
|
||||
<div class="col-12 table-responsive">
|
||||
<table class="table table-sm table-striped table-white">
|
||||
<thead class="thead-dark">
|
||||
<th>Titulo</th>
|
||||
<th>Título</th>
|
||||
<?php if($user->acceso == 'w'){?>
|
||||
<th>Acciones</th>
|
||||
<?php }?>
|
||||
|
||||
Reference in New Issue
Block a user