Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
4rthem committed Sep 27, 2023
1 parent 6051426 commit ece6318
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion expose/api/src/Doctrine/PublicationExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public function applyToCollection(
AccessControlEntryRepository::joinAcl(
$queryBuilder,
$user->getId(),
$user->getGroupIds(),
$user->getGroups(),
'publication',
$rootAlias,
PermissionInterface::EDIT,
Expand Down
2 changes: 1 addition & 1 deletion expose/api/src/Doctrine/PublicationProfileExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public function applyToCollection(
AccessControlEntryRepository::joinAcl(
$queryBuilder,
$user->getId(),
$user->getGroupIds(),
$user->getGroups(),
'profile',
'o',
PermissionInterface::VIEW,
Expand Down
2 changes: 1 addition & 1 deletion expose/api/src/Filter/PublicationFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ public function apply(
AccessControlEntryRepository::joinAcl(
$queryBuilder,
$user->getId(),
$user->getGroupIds(),
$user->getGroups(),
'publication',
'o',
PermissionInterface::EDIT,
Expand Down
2 changes: 1 addition & 1 deletion uploader/api/src/Security/Voter/TargetVoter.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ protected function voteOnAttribute($attribute, $subject, TokenInterface $token):
$user = $token->getUser();
$groups = [];
if ($user instanceof JwtUser) {
$groups = $user->getGroupIds();
$groups = $user->getGroups();
}

return match ($attribute) {
Expand Down

0 comments on commit ece6318

Please sign in to comment.