Skip to content

Commit f0c3f6f

Browse files
committed
Fix location permission name
1 parent a2a4ab0 commit f0c3f6f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/Transformers/Admin/NodeTransformer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ public function includeAllocations(Node $node)
9494
*/
9595
public function includeLocation(Node $node)
9696
{
97-
if ($this->request && ! $this->request->apiKeyHasPermission('location-view')) {
97+
if ($this->request && ! $this->request->apiKeyHasPermission('location-list')) {
9898
return;
9999
}
100100

app/Transformers/Admin/ServerTransformer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ public function includeVariables(Server $server)
184184
*/
185185
public function includeLocation(Server $server)
186186
{
187-
if ($this->request && ! $this->request->apiKeyHasPermission('location-view')) {
187+
if ($this->request && ! $this->request->apiKeyHasPermission('location-list')) {
188188
return;
189189
}
190190

0 commit comments

Comments
 (0)