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(); } }