From e07051b356446bff31ddbfed1ce261157691e4dd Mon Sep 17 00:00:00 2001 From: NOrtmann1 Date: Fri, 17 Jul 2026 15:58:10 +0200 Subject: [PATCH] Update showArticle-controller.php --- php/controller/showArticle-controller.php | 1 + 1 file changed, 1 insertion(+) diff --git a/php/controller/showArticle-controller.php b/php/controller/showArticle-controller.php index 6475220..901ac05 100644 --- a/php/controller/showArticle-controller.php +++ b/php/controller/showArticle-controller.php @@ -28,6 +28,7 @@ if (isset($_GET["id"]) && !empty($_GET["id"])){ if($_GET["pfad"] == "updateArticle"){ if($article->getAuthor() != $_SESSION["user_email"]){ $_SESSION["message"] = "unauthorized_access"; + header("location: ../index.php"); exit(); } }