dev auf main #68

Open
niklas.ortmann wants to merge 1044 commits from devNachCSRF into main
Showing only changes of commit d01be7d84c - Show all commits
+4 -5
View File
@@ -11,17 +11,16 @@ if (!isset($_SESSION["user"])) {
exit();
}
$user = $dao->findUser($_SESSION["user_email"] ?? "");
/*try {
$author = $user->getAuthor();
try {
$user = $dao->findUser($_SESSION["user_email"] ?? "");
$articleManager = ArticleManager::getInstance();
$userArticles = $articleManager->getArticlesByAuthor($author);
$userArticles = $articleManager->getArticlesByAuthor($user);
if(!isset($userArticles)) {
$_SESSION["message"] = "user_has_no_articles";
}
} catch (Exception $e) {
$_SESSION["message"] = "internal_error";
}*/
}
if (!$user) {
$_SESSION = [];