From 7196b265451bba6218a0501edde6d7caf9fc5690 Mon Sep 17 00:00:00 2001 From: Vinicius Pereira Date: Thu, 21 Nov 2024 11:55:01 -0300 Subject: [PATCH] Remove 'bypass group access' permission validation from SocialGroupAccessControlHandler The 'bypass group access' permission isn't available anymore and the 'bypass create group access' should be enought because CM and SM already have this permission. --- .../src/Entity/Access/SocialGroupAccessControlHandler.php | 1 - 1 file changed, 1 deletion(-) diff --git a/modules/social_features/social_group/src/Entity/Access/SocialGroupAccessControlHandler.php b/modules/social_features/social_group/src/Entity/Access/SocialGroupAccessControlHandler.php index 1268e7e4fff..a2e598bbe3f 100644 --- a/modules/social_features/social_group/src/Entity/Access/SocialGroupAccessControlHandler.php +++ b/modules/social_features/social_group/src/Entity/Access/SocialGroupAccessControlHandler.php @@ -53,7 +53,6 @@ public static function createInstance(ContainerInterface $container, EntityTypeI */ protected function checkCreateAccess(AccountInterface $account, array $context, $entity_bundle = NULL) { if ( - !$account->hasPermission('bypass group access') && !$account->hasPermission('bypass create group access') && !$this->configFactory->get('social_group.settings')->get('allow_group_create') ) {