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

Commit

Permalink
fix: do not use object as array in getResourceCapabilities
Browse files Browse the repository at this point in the history
introduced in 009160a
  • Loading branch information
melanger authored Aug 11, 2022
1 parent 945a141 commit 4075137
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/AdapterRpc.php
Original file line number Diff line number Diff line change
Expand Up @@ -707,7 +707,7 @@ public function getResourceCapabilities(string $spEntityId, array $userGroups, s
continue;
}
$resourceCapabilities = $this->connector->get('attributesManager', 'getAttribute', [
'resource' => $resource['id'],
'resource' => $resource->getId(),
'attributeName' => 'urn:perun:resource:attribute-def:def:capabilities',
]);

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

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

if (empty($resourceGroups)) {
Expand Down

0 comments on commit 4075137

Please sign in to comment.