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') ) {