From 3240601d036817fcc83729a7f48eea2b28fc1a67 Mon Sep 17 00:00:00 2001 From: Dane Everitt Date: Fri, 17 Feb 2017 18:26:47 -0500 Subject: [PATCH] Fix bug when trying to add new subuser. --- CHANGELOG.md | 1 + app/Repositories/SubuserRepository.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 12a23d724..799344e45 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ This project follows [Semantic Versioning](http://semver.org) guidelines. ### Fixed * `[pre.2]` — Fixes bug where servers could not be manually deployed to nodes due to a broken SQL call. * `[pre.2]` — Fixes inability to edit a server due to owner_id issues. +* `[pre.2]` — Fixes bug when trying to add new subusers. ### Changed * `[pre.2]` — File Manager now displays relevant information on all screen sizes, and includes better button clicking mechanics for dropdown menu. diff --git a/app/Repositories/SubuserRepository.php b/app/Repositories/SubuserRepository.php index 2010a5aba..2d9da4b29 100644 --- a/app/Repositories/SubuserRepository.php +++ b/app/Repositories/SubuserRepository.php @@ -177,7 +177,7 @@ class SubuserRepository $server->node->guzzleClient([ 'X-Access-Server' => $server->uuid, - 'X-Access-Token' => $node->daemonSecret, + 'X-Access-Token' => $server->node->daemonSecret, ])->request('PATCH', '/server', [ 'json' => [ 'keys' => [