Albisrieden/s/authentication.php

21 lines
453 B
PHP
Raw Normal View History

2025-01-07 04:13:11 +01:00
<?php
if(isset($_SESSION['auth']))
{
if(isset($_SESSION['loggedInUserRole'])){
$role = validate($_SESSION['loggedInUserRole']);
if($role != 'student'){
logoutSession();
redirect('../index.php', 'Zugriff verweigert', 'danger');
}
}
else
{
redirect('../index.php', 'Zugriff verweigert', 'danger');
}
}
else
{
redirect('../index.php', 'Bitte melde dich an', 'warning');
}
?>