<?php
require_once __DIR__ . "/config.php";

function exigir_garcom_logado() {
  if (session_status() === PHP_SESSION_NONE) session_start();
  if (empty($_SESSION["garcom_id"])) {
    header("Location: " . BASE_URL . "/garcom/login.php");
    exit;
  }
}
