mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-19 06:43:45 +02:00
Base node route implementation
This commit is contained in:
@@ -80,7 +80,7 @@ class NodeTransformer extends TransformerAbstract
|
||||
*/
|
||||
public function includeAllocations(Node $node)
|
||||
{
|
||||
if ($this->request && ! $this->request->apiKeyHasPermission('view-node')) {
|
||||
if ($this->request && ! $this->request->apiKeyHasPermission('node-view')) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -94,7 +94,7 @@ class NodeTransformer extends TransformerAbstract
|
||||
*/
|
||||
public function includeLocation(Node $node)
|
||||
{
|
||||
if ($this->request && ! $this->request->apiKeyHasPermission('view-node')) {
|
||||
if ($this->request && ! $this->request->apiKeyHasPermission('node-view')) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -108,7 +108,7 @@ class NodeTransformer extends TransformerAbstract
|
||||
*/
|
||||
public function includeServers(Node $node)
|
||||
{
|
||||
if ($this->request && ! $this->request->apiKeyHasPermission('list-servers')) {
|
||||
if ($this->request && ! $this->request->apiKeyHasPermission('server-list')) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user