Skip to content

Commit

Permalink
Update NodeAutoDeployController.php
Browse files Browse the repository at this point in the history
  • Loading branch information
kokofixcomputers authored Oct 12, 2024
1 parent 401a3e5 commit 15f8aec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Controllers/Admin/NodeAutoDeployController.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function __construct(
public function __invoke(Request $request, Node $node): JsonResponse
{
/** @var \Jexactyl\Models\ApiKey|null $key */
$key = $this->repository->getApplicationKeys($request->user())
$key = $this->repository->getApplicationKeys()
->filter(function (ApiKey $key) {
foreach ($key->getAttributes() as $permission => $value) {
if ($permission === 'r_nodes' && $value === 1) {
Expand Down

0 comments on commit 15f8aec

Please sign in to comment.