admin/jqadm/src/Admin/JQAdm/Locale/Site/Standard.php
protected function checkSite( $super, $id = null )
	{
		if( $super === true || (string) $this->getUserSiteId() === (string) $id ) {
			return;
		}

		throw new \Aimeos\Admin\JQAdm\Exception( sprintf( 'Permission denied' ) );
	}
protected function checkSite( $super, $id = null )
	{
		if( $super === true || (string) $this->getUserSiteId() === (string) $id ) {
			return;
		}

		throw new \Aimeos\Admin\JQAdm\Exception( sprintf( 'Permission denied' ) );
	}
protected function checkSite ( $ super , $ id = null ) { if ( $ super === true || ( string ) $ this -> getUserSiteId ( ) === ( string ) $ id ) { return ; } throw new \ Aimeos \ Admin \ JQAdm \ Exception ( sprintf ( 'Permission denied' ) ) ; }
Checks if the user is allowed to access the site item

@param boolean $super True if user is a super user
@param string $id ID of the site to access
@throws \Aimeos\Admin\JQAdm\Exception If user isn't allowed to access the site
Checks if the user is allowed to access the site item