Game-Jaming/Backend/Controllers/Admin/Admin.php

11 lines
119 B
PHP

<?php
/**
* @return bool
*/
function isAdmin(): bool
{
session_start();
return isset($_SESSION['admin']);
}