removed user specified hardcode
This commit is contained in:
parent
7d1d48199a
commit
21aa81dbd3
@ -8,7 +8,7 @@ $isEditMode = false;
|
||||
$note = null;
|
||||
if ($isEditMode) {
|
||||
$noteId = $_GET['id'] ?? 0;
|
||||
$note = $this->notesModel->getNoteById($noteId, 2); //$_SESSION['user_id']
|
||||
$note = $this->notesModel->getNoteById($noteId, $_SESSION['user_id']);
|
||||
if (!$note) {
|
||||
echo "<div class='alert alert-danger'>Note not found or you don't have permission to edit it.</div>";
|
||||
echo "<a href='?controller=Notes&page=showNotes&do=showNotes' class='button secondary'>Back to Dashboard</a>";
|
||||
|
@ -8,7 +8,7 @@ $isEditMode = true;
|
||||
$note = null;
|
||||
if ($isEditMode) {
|
||||
$noteId = $_GET['id'] ?? 0;
|
||||
$note = $this->notesModel->getNoteById($noteId, 2); //$_SESSION['user_id']
|
||||
$note = $this->notesModel->getNoteById($noteId, $_SESSION['user_id']);
|
||||
if (!$note) {
|
||||
echo "<div class='alert alert-danger'>Note not found or you don't have permission to edit it.</div>";
|
||||
echo "<a href='?controller=Notes&page=showNotes&do=showNotes' class='button secondary'>Back to Dashboard</a>";
|
||||
|
Loading…
x
Reference in New Issue
Block a user