Fix location permission name
This commit is contained in:
parent
a2a4ab05c8
commit
f0c3f6f9b6
|
@ -94,7 +94,7 @@ class NodeTransformer extends TransformerAbstract
|
||||||
*/
|
*/
|
||||||
public function includeLocation(Node $node)
|
public function includeLocation(Node $node)
|
||||||
{
|
{
|
||||||
if ($this->request && ! $this->request->apiKeyHasPermission('location-view')) {
|
if ($this->request && ! $this->request->apiKeyHasPermission('location-list')) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -184,7 +184,7 @@ class ServerTransformer extends TransformerAbstract
|
||||||
*/
|
*/
|
||||||
public function includeLocation(Server $server)
|
public function includeLocation(Server $server)
|
||||||
{
|
{
|
||||||
if ($this->request && ! $this->request->apiKeyHasPermission('location-view')) {
|
if ($this->request && ! $this->request->apiKeyHasPermission('location-list')) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue