36274-vm/auth.php
Flatlogic Bot 76b95bec18 v1
2025-11-25 15:04:51 +00:00

15 lines
358 B
PHP

<?php
session_start();
if (!isset($_SESSION['user_id'])) {
// If no user is logged in, redirect to the login page.
header("Location: login.php");
exit;
}
// Optional: You could add role-based access control here later.
// For example:
// if ($_SESSION['role'] !== 'artist') {
// die("You do not have permission to access this page.");
// }