Fix location permission name
This commit is contained in:
parent
a2a4ab05c8
commit
f0c3f6f9b6
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue