Skip to content

Commit ed4068b

Browse files
committed
Fix bug preventing server container rebuilds.
1 parent 644c07e commit ed4068b

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
@@ -7,6 +7,7 @@ This project follows [Semantic Versioning](http://semver.org) guidelines.
77
### Fixed
88
* `[pre.3]` — Fixes bug in cache handler that doesn't cache against the user making the request. Would have allowed for users to access servers not belonging to themselves in production.
99
* `[pre.3]` — Fixes misnamed MySQL column that was causing the inability to delete certain port ranges from the database.
10+
* `[pre.3]` — Fixes bug preventing rebuilding server containers through the Admin CP.
1011

1112
### Added
1213
* New cache policy for ServerPolicy to avoid making 15+ queries per page load when confirming if a user has permission to perform an action.

app/Http/Controllers/Admin/ServersController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ public function postUpdateServerToggleBuild(Request $request, $id)
251251
try {
252252
$res = $server->node->guzzleClient([
253253
'X-Access-Server' => $server->uuid,
254-
'X-Access-Token' => $node->daemonSecret,
254+
'X-Access-Token' => $server->node->daemonSecret,
255255
])->request('POST', '/server/rebuild');
256256
Alert::success('A rebuild has been queued successfully. It will run the next time this server is booted.')->flash();
257257
} catch (\GuzzleHttp\Exception\TransferException $ex) {

0 commit comments

Comments
 (0)