Fix inability to revoke admin tokens from daemon
This commit is contained in:
parent
a4f03f5d02
commit
d7efb4c4a2
2 changed files with 2 additions and 1 deletions
|
@ -9,6 +9,7 @@ This project follows [Semantic Versioning](http://semver.org) guidelines.
|
||||||
* Search term is now passed through when using paginated result sets.
|
* Search term is now passed through when using paginated result sets.
|
||||||
* Reduces the number of SQL queries executed when rendering the server listing to increase performance.
|
* Reduces the number of SQL queries executed when rendering the server listing to increase performance.
|
||||||
* Fixes exceptions being thrown for non-existent subuser permissions.
|
* Fixes exceptions being thrown for non-existent subuser permissions.
|
||||||
|
* Fixes exception caused when trying to revoke admin privileges from a user account due to a bad endpoint.
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
* Databases are now properly paginated when viewing a database host.
|
* Databases are now properly paginated when viewing a database host.
|
||||||
|
|
|
@ -115,7 +115,7 @@ class ServerRepository extends BaseRepository implements ServerRepositoryInterfa
|
||||||
public function revokeAccessKey($key): ResponseInterface
|
public function revokeAccessKey($key): ResponseInterface
|
||||||
{
|
{
|
||||||
if (is_array($key)) {
|
if (is_array($key)) {
|
||||||
return $this->getHttpClient()->request('POST', 'keys', [
|
return $this->getHttpClient()->request('POST', 'keys/batch-delete', [
|
||||||
'json' => $key,
|
'json' => $key,
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue