mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-09 18:03:44 +02:00
Fix location permission name
This commit is contained in:
@@ -94,7 +94,7 @@ class NodeTransformer extends TransformerAbstract
|
||||
*/
|
||||
public function includeLocation(Node $node)
|
||||
{
|
||||
if ($this->request && ! $this->request->apiKeyHasPermission('location-view')) {
|
||||
if ($this->request && ! $this->request->apiKeyHasPermission('location-list')) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -184,7 +184,7 @@ class ServerTransformer extends TransformerAbstract
|
||||
*/
|
||||
public function includeLocation(Server $server)
|
||||
{
|
||||
if ($this->request && ! $this->request->apiKeyHasPermission('location-view')) {
|
||||
if ($this->request && ! $this->request->apiKeyHasPermission('location-list')) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user