Rectesystem eingebaut

This commit is contained in:
2026-04-05 11:19:20 +02:00
parent cfd25d3b54
commit eb35501712
9 changed files with 1046 additions and 25 deletions
+3 -1
View File
@@ -10,6 +10,8 @@ if (!isset($_SESSION['user_id'])) {
exit;
}
require_once __DIR__ . '/../auth_helpers.php';
$config = require __DIR__ . '/../../config/database.php';
$telegramConfig = require __DIR__ . '/../../config/telegram.php';
@@ -255,7 +257,7 @@ $currentUser = $stmtCurrentUser->fetch();
if (
!$currentUser ||
$currentUser['role'] !== 'admin' ||
!isAdminLikeRole((string) $currentUser['role']) ||
(int) $currentUser['is_active'] !== 1
) {
$_SESSION = [];