Merge pull request 'Beitrag Bearbeiten Autorenprüfung' (#49) from Beitrag-bearbeiten-Autorenpruefung into dev
Reviewed-on: #49
This commit was merged in pull request #49.
This commit is contained in:
@@ -25,6 +25,14 @@ if (isset($_GET["id"]) && !empty($_GET["id"])){
|
||||
exit();
|
||||
}
|
||||
|
||||
if($_GET["pfad"] == "updateArticle"){
|
||||
if($article->getAuthor() != $_SESSION["user_email"]){
|
||||
$_SESSION["message"] = "unauthorized_access";
|
||||
header("location: index.php");
|
||||
exit();
|
||||
}
|
||||
}
|
||||
|
||||
$commentManager = CommentManager::getInstance();
|
||||
$comments = $commentManager->getCommentsByArticle($_GET["id"]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user