Commit e72486fa authored by Karl Shea's avatar Karl Shea
Browse files

Issue #3284964: Fix Query condition 'group_content_field_data.entity_id IN ()' cannot be empty

parent 627078f1
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -179,6 +179,10 @@ class GroupConsumer extends ConsumerPluginBase {
   * {@inheritdoc}
   */
  public function revokeGrants(UserInterface $user, array $context): void {
    if (!$user->id()) {
      return;
    }

    // Find the granted groups and roles from the applied grants (context).
    $granted_group_roles = [];
    foreach ($context as $mapping) {