mirror of
https://github.com/pterodactyl/panel.git
synced 2026-12-03 04:45:44 -05:00
adjust node deploy permissions
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user