protected function controlAccessEditReview()
    {
        if (!$this->config('review_enabled', 1) || empty($this->uid)) {
            $this->outputHttpStatus(403);
        }

        if (!$this->config('review_editable', 1)) {
            $this->outputHttpStatus(403);
        }

        if (isset($this->data_review['review_id']) && $this->data_review['user_id'] != $this->uid) {
            $this->outputHttpStatus(403);
        }
    }
protected function controlAccessEditReview()
    {
        if (!$this->config('review_enabled', 1) || empty($this->uid)) {
            $this->outputHttpStatus(403);
        }

        if (!$this->config('review_editable', 1)) {
            $this->outputHttpStatus(403);
        }

        if (isset($this->data_review['review_id']) && $this->data_review['user_id'] != $this->uid) {
            $this->outputHttpStatus(403);
        }
    }
protected function controlAccessEditReview ( ) { if ( ! $ this -> config ( 'review_enabled' , 1 ) || empty ( $ this -> uid ) ) { $ this -> outputHttpStatus ( 403 ) ; } if ( ! $ this -> config ( 'review_editable' , 1 ) ) { $ this -> outputHttpStatus ( 403 ) ; } if ( isset ( $ this -> data_review [ 'review_id' ] ) && $ this -> data_review [ 'user_id' ] != $ this -> uid ) { $ this -> outputHttpStatus ( 403 ) ; } }
Controls access to the edit review page
Controls access to the edit review page