protected function controlAccessProduct()
    {

        if (empty($this->data_product['store_id']) || $this->data_product['store_id'] != $this->store_id) {
            $this->outputHttpStatus(403);
        }

        if (empty($this->data_product['status']) && !$this->access('product')) {
            $this->outputHttpStatus(403);
        }
    }
protected function controlAccessProduct()
    {

        if (empty($this->data_product['store_id']) || $this->data_product['store_id'] != $this->store_id) {
            $this->outputHttpStatus(403);
        }

        if (empty($this->data_product['status']) && !$this->access('product')) {
            $this->outputHttpStatus(403);
        }
    }
protected function controlAccessProduct ( ) { if ( empty ( $ this -> data_product [ 'store_id' ] ) || $ this -> data_product [ 'store_id' ] != $ this -> store_id ) { $ this -> outputHttpStatus ( 403 ) ; } if ( empty ( $ this -> data_product [ 'status' ] ) && ! $ this -> access ( 'product' ) ) { $ this -> outputHttpStatus ( 403 ) ; } }
Controls access to the product
Controls access to the product