Skip to content
Snippets Groups Projects
Commit 243b3f52 authored by Taras Kruts's avatar Taras Kruts
Browse files

Merge pull request #3115 from goalgorilla/issue/3310102

Issue #3310102 by rolki: We should not send emails to users who have already accepted the invitation
parent 63f865c9
Branches
Tags
No related merge requests found
......@@ -88,6 +88,11 @@ class SocialGroupInviteResend extends ViewsBulkOperationsActionBase implements C
* @throws \Drupal\Core\Entity\EntityStorageException
*/
public function execute($entity = NULL): void {
$is_member = $entity->getGroup()->getMember($entity->getEntity());
if (is_object($is_member)) {
return;
}
// This action allows to resend invitations for each member.
$time = $this->time->getCurrentTime();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment