Compare commits

..

5 Commits

+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"]){ if($article->getAuthor() != $_SESSION["user_email"]){
$_SESSION["message"] = "unauthorized_access"; $_SESSION["message"] = "unauthorized_access";
header("location: ../../index.php"); header("location: index.php");
exit(); exit();
} }
} }