Compare commits

..

No commits in common. "c0bd9b7e8a992f1b390d1ec6c9557ad99c71f665" and "a3cfd431c30388bf663aeb94d74e98f564e085ab" have entirely different histories.

View File

@ -20,8 +20,8 @@ class NotesController
{ {
$sortBy = $_GET['sort_by'] ?? 'updated_at'; $sortBy = $_GET['sort_by'] ?? 'updated_at';
$sortOrder = strtoupper($_GET['sort_order'] ?? 'DESC'); $sortOrder = strtoupper($_GET['sort_order'] ?? 'DESC');
$isAdmin = $_SESSION['role'] === 'admin'; $isAdmin = false;
$userid = $_SESSION['user_id']; $userid = 2; //$_SESSION['user_id'];
$this->view->setVars([ $this->view->setVars([
"notes" => $this->notesModel->selectNotesForUser($userid, $isAdmin, $sortBy, $sortOrder) "notes" => $this->notesModel->selectNotesForUser($userid, $isAdmin, $sortBy, $sortOrder)