From 487670e522b5fbbe7b631305181ca64d75e32dfb Mon Sep 17 00:00:00 2001 From: Sami Mokaddem Date: Thu, 23 Feb 2023 14:57:58 +0100 Subject: [PATCH] chg: [authkeys:add] Select logged-in user by default --- src/Controller/AuthKeysController.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Controller/AuthKeysController.php b/src/Controller/AuthKeysController.php index bfca38d..37aa356 100644 --- a/src/Controller/AuthKeysController.php +++ b/src/Controller/AuthKeysController.php @@ -103,6 +103,7 @@ class AuthKeysController extends AppController $dropdownData = [ 'user' => $users ]; + $this->entity->user_id = $currentUser['id']; $this->set(compact('dropdownData')); } }