Update showArticle-controller.php
This commit is contained in:
@@ -26,7 +26,7 @@ if (isset($_GET["id"]) && !empty($_GET["id"])){
|
||||
}
|
||||
|
||||
if($_GET["pfad"] == "updateArticle"){
|
||||
if($article->getAuthor() != $_SESSION["user"]){
|
||||
if($article->getAuthor() != $_SESSION["user_email"]){
|
||||
$_SESSION["message"] = "unauthorized_access";
|
||||
header("location: ../../index.php");
|
||||
exit();
|
||||
|
||||
Reference in New Issue
Block a user