Restricción de permisos para rol coordinador en asignaciones y navbar
This commit is contained in:
@@ -52,9 +52,11 @@ $dbName = getenv('DB_NAME') ?: 'No configurado';
|
||||
<?php endif; ?>
|
||||
</ul>
|
||||
<ul class="navbar-nav">
|
||||
<li class="nav-item">
|
||||
<a class="nav-link <?= $currentPage === 'logs' ? 'active' : '' ?>" href="/admin/logs.php">Logs</a>
|
||||
</li>
|
||||
<?php if ($auth->isAdmin()): ?>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link <?= $currentPage === 'logs' ? 'active' : '' ?>" href="/admin/logs.php">Logs</a>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
<li class="nav-item dropdown">
|
||||
<a class="nav-link dropdown-toggle" href="#" role="button" data-bs-toggle="dropdown">
|
||||
<?= htmlspecialchars($user['nombre'] ?? 'Usuario') ?>
|
||||
@@ -73,8 +75,10 @@ $dbName = getenv('DB_NAME') ?: 'No configurado';
|
||||
}
|
||||
?>
|
||||
</span></li>
|
||||
<li><span class="dropdown-item-text d-block small text-muted"><strong>DB Host:</strong> <?= htmlspecialchars($dbHost) ?></span></li>
|
||||
<li><span class="dropdown-item-text d-block small text-muted"><strong>DB Name:</strong> <?= htmlspecialchars($dbName) ?></span></li>
|
||||
<?php if ($auth->isAdmin()): ?>
|
||||
<li><span class="dropdown-item-text d-block small text-muted"><strong>DB Host:</strong> <?= htmlspecialchars($dbHost) ?></span></li>
|
||||
<li><span class="dropdown-item-text d-block small text-muted"><strong>DB Name:</strong> <?= htmlspecialchars($dbName) ?></span></li>
|
||||
<?php endif; ?>
|
||||
<li><hr class="dropdown-divider"></li>
|
||||
<?php if ($user['rol'] ?? '' === 'ayudante'): ?>
|
||||
<li><a class="dropdown-item" href="/cambiar-password.php">Cambiar Contraseña</a></li>
|
||||
|
||||
Reference in New Issue
Block a user