check_admin hinzugefügt

This commit is contained in:
Borgal
2025-08-13 17:50:38 +02:00
parent 6b5ff9b381
commit b126c5f044
4 changed files with 10 additions and 11 deletions

6
inc/check_admin.php Executable file
View File

@@ -0,0 +1,6 @@
<?php
// Nur Admins haben Zugriff
if ($_SESSION['role'] !== 'admin') {
die("Zugriff nur für Admins");
}