controller/frontend/src/Controller/Frontend/Customer/Standard.php
protected function checkId( $id )
	{
		if( $id != $this->getContext()->getUserId() )
		{
			$msg = sprintf( 'Not allowed to access customer data for ID "%1$s"', $id );
			throw new \Aimeos\Controller\Frontend\Customer\Exception( $msg );
		}

		return $id;
	}
protected function checkId( $id )
	{
		if( $id != $this->getContext()->getUserId() )
		{
			$msg = sprintf( 'Not allowed to access customer data for ID "%1$s"', $id );
			throw new \Aimeos\Controller\Frontend\Customer\Exception( $msg );
		}

		return $id;
	}
protected function checkId ( $ id ) { if ( $ id != $ this -> getContext ( ) -> getUserId ( ) ) { $ msg = sprintf ( 'Not allowed to access customer data for ID "%1$s"' , $ id ) ; throw new \ Aimeos \ Controller \ Frontend \ Customer \ Exception ( $ msg ) ; } return $ id ; }
Checks if the current user is allowed to retrieve the customer data for the given ID

@param string $id Unique customer ID
@return string Unique customer ID
@throws \Aimeos\Controller\Frontend\Customer\Exception If access isn't allowed
Checks if the current user is allowed to retrieve the customer data for the given ID