Skip to content

Commit d7efb4c

Browse files
committed
Fix inability to revoke admin tokens from daemon
1 parent a4f03f5 commit d7efb4c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ This project follows [Semantic Versioning](http://semver.org) guidelines.
99
* Search term is now passed through when using paginated result sets.
1010
* Reduces the number of SQL queries executed when rendering the server listing to increase performance.
1111
* Fixes exceptions being thrown for non-existent subuser permissions.
12+
* Fixes exception caused when trying to revoke admin privileges from a user account due to a bad endpoint.
1213

1314
### Changed
1415
* Databases are now properly paginated when viewing a database host.

app/Repositories/Daemon/ServerRepository.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ public function details(): ResponseInterface
115115
public function revokeAccessKey($key): ResponseInterface
116116
{
117117
if (is_array($key)) {
118-
return $this->getHttpClient()->request('POST', 'keys', [
118+
return $this->getHttpClient()->request('POST', 'keys/batch-delete', [
119119
'json' => $key,
120120
]);
121121
}

0 commit comments

Comments
 (0)