Skip to content

Commit

Permalink
update Add Contact to Group Views Bulk operations action plugin acces…
Browse files Browse the repository at this point in the history
…s handler (#464)
  • Loading branch information
jackrabbithanna authored Feb 12, 2024
1 parent c1b2f5f commit 65c053f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Plugin/Action/CivicrmContactAddToGroup.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ public function buildConfigurationForm(array $form, FormStateInterface $form_sta
* {@inheritdoc}
*/
public function access($object, AccountInterface $account = NULL, $return_as_object = FALSE) {
return $account->hasPermission('edit all contacts');
return $object->access('update', $account, $return_as_object);
}

/**
Expand Down

0 comments on commit 65c053f

Please sign in to comment.