1
1
mirror of https://github.com/pterodactyl/panel.git synced 2024-10-27 04:12:28 +01:00

Fix location permission name

This commit is contained in:
Dane Everitt 2017-04-09 15:39:44 -04:00
parent a2a4ab05c8
commit f0c3f6f9b6
No known key found for this signature in database
GPG Key ID: EEA66103B3D71F53
2 changed files with 2 additions and 2 deletions

View File

@ -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;
}

View File

@ -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;
}