<?php

require_once __DIR__ . '/../../core/bootstrap.php';
require_once __DIR__ . '/../../core/permissions.php';

session_start();

if (!isset($_SESSION['user'])) {
    header('Location: login.php');
    exit;
}

$user = $_SESSION['user'];