query($sql); $isDeveloper = $result->fetch(PDO::FETCH_ASSOC); // Check if the user has developer access (Entwickler = 1) if ($isDeveloper["Entwickler"] == 1) { $sql_groups = "SELECT * FROM user_permissions"; $stmt = $pdo->prepare($sql_groups); $stmt->execute(); $groups = $stmt->fetchAll(PDO::FETCH_ASSOC); } else { header("Location: {$g_httpHomePath}"); exit(); } ?>
Entwicklungsprozess