original_string: 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);
          }
      }
code: 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);
          }
      }
code_tokens: 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 ) ; } }
docstring: Controls access to the edit review page
docstring_tokens: Controls access to the edit review page