fix: [authkey] add fixed

- incorrectly potentially filter out valid options when adding a key by a regular user
pull/92/head
iglocska 2022-01-19 14:39:03 +01:00
parent 8c404d8427
commit d488f01051
No known key found for this signature in database
GPG Key ID: BEA224F1FEF113AC
1 changed files with 1 additions and 1 deletions

View File

@ -79,7 +79,7 @@ class AuthKeysController extends AppController
if (!empty($userConditions)) {
$users->where($userConditions);
}
$users = $users->order(['username' => 'asc'])->all()->toList();
$users = $users->order(['username' => 'asc'])->all()->toArray();
$this->CRUD->add([
'displayOnSuccess' => 'authkey_display',
'beforeSave' => function($data) use ($users) {