AuthUser(); // $user->setUsuarioId($_SESSION["User"]["usuarioId"]); // Not needed, uses loginKey from session $usrInfo = $user->Info(); echo "

Debug Layout

"; echo "WEB_ROOT constant: " . WEB_ROOT . "
"; echo "ENV WEB_ROOT: " . $_ENV['WEB_ROOT'] . "
"; echo "User Type in Session: " . $usrInfo['type'] . "
"; echo "
"; echo "

CSS Links generated:

"; echo ''; echo "
(Check source code or network tab for 404s)"; echo "
"; echo "

Checking User Permissions for Menu:

"; $type = $usrInfo['type']; echo "Type: $type
"; if ($type == "admin" || $type == "direccion" || $type == "compras" || $type == "almacen" || $type == "gerente" || $type == "centralizador") { echo "Show Catalogos: YES
"; } else { echo "Show Catalogos: NO
"; } ?>