Skip to content
This repository was archived by the owner on Sep 19, 2022. It is now read-only.

Commit e6b2f8d

Browse files
author
Dominik František Bučík
authored
Merge pull request #285 from CESNET/melanger-patch-1
fix: do not use object as array in getResourceCapabilities
2 parents 945a141 + 4075137 commit e6b2f8d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/AdapterRpc.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -707,7 +707,7 @@ public function getResourceCapabilities(string $spEntityId, array $userGroups, s
707707
continue;
708708
}
709709
$resourceCapabilities = $this->connector->get('attributesManager', 'getAttribute', [
710-
'resource' => $resource['id'],
710+
'resource' => $resource->getId(),
711711
'attributeName' => 'urn:perun:resource:attribute-def:def:capabilities',
712712
]);
713713

@@ -720,7 +720,7 @@ public function getResourceCapabilities(string $spEntityId, array $userGroups, s
720720
$resourceCapabilities = $resourceCapabilities['value'];
721721

722722
$resourceGroups = $this->connector->get('resourcesManager', 'getAssignedGroups', [
723-
'resource' => $resource['id'],
723+
'resource' => $resource->getId(),
724724
]);
725725

726726
if (empty($resourceGroups)) {

0 commit comments

Comments
 (0)