Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| cebbe8869a | |||
| e07051b356 | |||
| 2d2bbeb39f | |||
| c00443b6fa | |||
| 1d541e285c |
@@ -26,9 +26,9 @@ 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");
|
||||
header("location: index.php");
|
||||
exit();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user