Compare commits

..

1 Commits

Author SHA1 Message Date
niklas.ortmann bd125c851f Update showArticle-controller.php 2026-07-17 15:53:15 +02:00
+2 -2
View File
@@ -26,9 +26,9 @@ if (isset($_GET["id"]) && !empty($_GET["id"])){
} }
if($_GET["pfad"] == "updateArticle"){ if($_GET["pfad"] == "updateArticle"){
if($article->getAuthor() != $_SESSION["user_email"]){ if($article->getAuthor() != $_SESSION["user"]){
$_SESSION["message"] = "unauthorized_access"; $_SESSION["message"] = "unauthorized_access";
header("location: index.php"); header("location: ../../index.php");
exit(); exit();
} }
} }