Skip to content

Commit

Permalink
Spaces and newlines.
Browse files Browse the repository at this point in the history
  • Loading branch information
rosiel committed Jan 23, 2024
1 parent 88fad73 commit 77bb8d9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Access/QueryTagger.php
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ protected function buildAccessibleEmbargoesQuery($type) : SelectInterface {

// ... the user has a role that is exempted from the embargo.
$role_alias = $query->leftJoin('embargo__exempt_roles', 'r', 'e.id = %alias.entity_id');
$group->condition("{$role_alias}.exempt_roles_target_id",$this->user->getRoles(), 'IN');
$group->condition("{$role_alias}.exempt_roles_target_id", $this->user->getRoles(), 'IN');

$query->condition($group);

Expand Down
1 change: 1 addition & 0 deletions src/Entity/Embargo.php
Original file line number Diff line number Diff line change
Expand Up @@ -475,6 +475,7 @@ public function isUserRoleExempt(AccountInterface $user): bool {
}, $this->getExemptRoles());
return count(array_intersect($exempt_role_ids, $user->getRoles())) > 0;
}

/**
* {@inheritdoc}
*/
Expand Down

0 comments on commit 77bb8d9

Please sign in to comment.