diff --git a/src/Access/QueryTagger.php b/src/Access/QueryTagger.php index 5f06c7b..70d099a 100644 --- a/src/Access/QueryTagger.php +++ b/src/Access/QueryTagger.php @@ -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); diff --git a/src/Entity/Embargo.php b/src/Entity/Embargo.php index 2f78d9b..3c3d73d 100644 --- a/src/Entity/Embargo.php +++ b/src/Entity/Embargo.php @@ -475,6 +475,7 @@ public function isUserRoleExempt(AccountInterface $user): bool { }, $this->getExemptRoles()); return count(array_intersect($exempt_role_ids, $user->getRoles())) > 0; } + /** * {@inheritdoc} */