fix: [AuthKeys] Allow users to edit own authkeys, fix #9292 (#9293)

pull/9301/head
Jeroen Pinoy 2023-09-28 11:15:18 +02:00 committed by GitHub
parent 2f790c2f17
commit 5b627c076a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -279,6 +279,7 @@ class AuthKeysController extends AppController
'conditions' => [
'AuthKey.id' => $key_id
]]);
if(!empty($user_id)) $user_id = $user_id[0];
return $this->__canCreateAuthKeyForUser($user_id);
}
}