src/ShopBundle/objects/db/TShopPaymentMethod.class.php
protected function checkUserGroup(TdbDataExtranetUser $oUser)
    {
        $bIsValidGroup = false;
        $aUserGroups = $this->getPaymentMethodDataAccess()->getPermittedUserGroupIds($this->id);
        if (!is_array($aUserGroups) || count($aUserGroups) < 1) {
            $bIsValidGroup = true;
        } elseif ($oUser->IsLoggedIn()) {
            $bIsValidGroup = $oUser->InUserGroups($aUserGroups);
        }

        return $bIsValidGroup;
    }
protected function checkUserGroup(TdbDataExtranetUser $oUser)
    {
        $bIsValidGroup = false;
        $aUserGroups = $this->getPaymentMethodDataAccess()->getPermittedUserGroupIds($this->id);
        if (!is_array($aUserGroups) || count($aUserGroups) < 1) {
            $bIsValidGroup = true;
        } elseif ($oUser->IsLoggedIn()) {
            $bIsValidGroup = $oUser->InUserGroups($aUserGroups);
        }

        return $bIsValidGroup;
    }
protected function checkUserGroup ( TdbDataExtranetUser $ oUser ) { $ bIsValidGroup = false ; $ aUserGroups = $ this -> getPaymentMethodDataAccess ( ) -> getPermittedUserGroupIds ( $ this -> id ) ; if ( ! is_array ( $ aUserGroups ) || count ( $ aUserGroups ) < 1 ) { $ bIsValidGroup = true ; } elseif ( $ oUser -> IsLoggedIn ( ) ) { $ bIsValidGroup = $ oUser -> InUserGroups ( $ aUserGroups ) ; } return $ bIsValidGroup ; }
check user group.

@param TdbDataExtranetUser $oUser

@return bool
check user group .