From 77bb8d94071027a3e12597c0ae72e9b032773b36 Mon Sep 17 00:00:00 2001 From: Rosie Le Faive Date: Tue, 23 Jan 2024 13:04:07 -0400 Subject: [PATCH] Spaces and newlines. --- src/Access/QueryTagger.php | 2 +- src/Entity/Embargo.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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} */