protected function addGroups( \Aimeos\MShop\Context\Item\Iface $context )
	{
		if( ( $userid = Auth::id() ) !== null )
		{
			$context->setGroupIds( function() use ( $context, $userid )
			{
				$manager = \Aimeos\MShop::create( $context, 'customer' );
				return $manager->getItem( $userid, array( 'customer/group' ) )->getGroups();
			} );
		}

		return $context;
	}
protected function addGroups( \Aimeos\MShop\Context\Item\Iface $context )
	{
		if( ( $userid = Auth::id() ) !== null )
		{
			$context->setGroupIds( function() use ( $context, $userid )
			{
				$manager = \Aimeos\MShop::create( $context, 'customer' );
				return $manager->getItem( $userid, array( 'customer/group' ) )->getGroups();
			} );
		}

		return $context;
	}
protected function addGroups ( \ Aimeos \ MShop \ Context \ Item \ Iface $ context ) { if ( ( $ userid = Auth :: id ( ) ) !== null ) { $ context -> setGroupIds ( function ( ) use ( $ context , $ userid ) { $ manager = \ Aimeos \ MShop :: create ( $ context , 'customer' ) ; return $ manager -> getItem ( $ userid , array ( 'customer/group' ) ) -> getGroups ( ) ; } ) ; } return $ context ; }
Adds the group IDs if available

@param \Aimeos\MShop\Context\Item\Iface $context Context object
@return \Aimeos\MShop\Context\Item\Iface Modified context object
Adds the group IDs if available