public function hasGroupMembership($uidList)
    {
        if ($uidList === '') {
            throw new \InvalidArgumentException('$uidList must not be empty.', 1331488635);
        }

        $isMember = false;

        foreach (GeneralUtility::trimExplode(',', $uidList, true) as $uid) {
            if ($this->getUserGroups()->hasUid($uid)) {
                $isMember = true;
                break;
            }
        }

        return $isMember;
    }
public function hasGroupMembership($uidList)
    {
        if ($uidList === '') {
            throw new \InvalidArgumentException('$uidList must not be empty.', 1331488635);
        }

        $isMember = false;

        foreach (GeneralUtility::trimExplode(',', $uidList, true) as $uid) {
            if ($this->getUserGroups()->hasUid($uid)) {
                $isMember = true;
                break;
            }
        }

        return $isMember;
    }
public function hasGroupMembership ( $ uidList ) { if ( $ uidList === '' ) { throw new \ InvalidArgumentException ( '$uidList must not be empty.' , 1331488635 ) ; } $ isMember = false ; foreach ( GeneralUtility :: trimExplode ( ',' , $ uidList , true ) as $ uid ) { if ( $ this -> getUserGroups ( ) -> hasUid ( $ uid ) ) { $ isMember = true ; break ; } } return $ isMember ; }
Checks whether this user is a member of at least one of the user groups
provided as comma-separated UID list.

@param string $uidList
comma-separated list of user group UIDs, can also consist of only
one UID, but must not be empty

@return bool TRUE if the user is member of at least one of the user groups provided, FALSE otherwise

@throws \InvalidArgumentException
Checks whether this user is a member of at least one of the user groups provided as comma - separated UID list .