Skip to content

Commit

Permalink
[Resource] fixes activity page
Browse files Browse the repository at this point in the history
  • Loading branch information
Elorfin committed Apr 3, 2024
1 parent de96d49 commit 278da1b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function __construct(
*/
public function functionalLogsAction(ResourceNode $resourceNode, Request $request): JsonResponse
{
$this->checkPermission($resourceNode, 'ADMINISTRATE', [], true);
$this->checkPermission('ADMINISTRATE', $resourceNode, [], true);

$hiddenFilters = [
'resource' => $resourceNode->getUuid(),
Expand All @@ -48,7 +48,7 @@ public function functionalLogsAction(ResourceNode $resourceNode, Request $reques

$organizations = array_map(function (Organization $organization) {
return $organization->getUuid();
}, $user->getOrganizations()->toArray());
}, $user->getOrganizations());
$hiddenFilters['organizations'] = $organizations;
}

Expand Down

0 comments on commit 278da1b

Please sign in to comment.