Compare commits
2 Commits
a3cfd431c3
...
c0bd9b7e8a
Author | SHA1 | Date | |
---|---|---|---|
![]() |
c0bd9b7e8a | ||
![]() |
020bdc8c89 |
@ -20,8 +20,8 @@ class NotesController
|
||||
{
|
||||
$sortBy = $_GET['sort_by'] ?? 'updated_at';
|
||||
$sortOrder = strtoupper($_GET['sort_order'] ?? 'DESC');
|
||||
$isAdmin = false;
|
||||
$userid = 2; //$_SESSION['user_id'];
|
||||
$isAdmin = $_SESSION['role'] === 'admin';
|
||||
$userid = $_SESSION['user_id'];
|
||||
|
||||
$this->view->setVars([
|
||||
"notes" => $this->notesModel->selectNotesForUser($userid, $isAdmin, $sortBy, $sortOrder)
|
||||
|
Loading…
x
Reference in New Issue
Block a user