adjust node deploy permissions

This commit is contained in:
robert dennis
2026-06-24 15:45:20 -04:00
parent 809122d682
commit f38836958b
9 changed files with 13 additions and 108 deletions
@@ -11,7 +11,7 @@ use Pterodactyl\Tests\Integration\Http\HttpTestCase;
class NodeAutoDeployControllerTest extends HttpTestCase
{
public function testGeneratedTokenIsScopedToNodeConfiguration(): void
public function testGeneratedTokenHasNodeWritePermission(): void
{
$node = Node::factory()->for(Location::factory())->create();
@@ -25,7 +25,6 @@ class NodeAutoDeployControllerTest extends HttpTestCase
->where('identifier', substr($response->json('token'), 0, ApiKey::IDENTIFIER_LENGTH))
->firstOrFail();
$this->assertSame($node->id, $key->node_id);
$this->assertSame(AdminAcl::READ_CONFIGURATION, $key->r_nodes);
$this->assertSame(AdminAcl::READ | AdminAcl::WRITE, $key->r_nodes);
}
}