Skip to content

Commit

Permalink
Remove 'bypass group access' permission validation from SocialGroupAc…
Browse files Browse the repository at this point in the history
…cessControlHandler

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.
  • Loading branch information
vcsvinicius committed Nov 21, 2024
1 parent b93338a commit 7196b26
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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')
) {
Expand Down

0 comments on commit 7196b26

Please sign in to comment.