fix: [authkey] add fixed
- incorrectly potentially filter out valid options when adding a key by a regular userpull/92/head
parent
8c404d8427
commit
d488f01051
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue