original_string: public function check_permissions() {
          if ($this->recordid) {
              if (data_isowner($this->recordid)) {
                  return has_capability('mod/data:exportownentry', context_module::instance($this->cm->id));
              }
              return has_capability('mod/data:exportentry', context_module::instance($this->cm->id));
          }
          if ($this->has_export_config() && !$this->get_export_config('mineonly')) {
              return has_capability('mod/data:exportallentries', context_module::instance($this->cm->id));
          }
          return has_capability('mod/data:exportownentry', context_module::instance($this->cm->id));
      }
code: public function check_permissions() {
          if ($this->recordid) {
              if (data_isowner($this->recordid)) {
                  return has_capability('mod/data:exportownentry', context_module::instance($this->cm->id));
              }
              return has_capability('mod/data:exportentry', context_module::instance($this->cm->id));
          }
          if ($this->has_export_config() && !$this->get_export_config('mineonly')) {
              return has_capability('mod/data:exportallentries', context_module::instance($this->cm->id));
          }
          return has_capability('mod/data:exportownentry', context_module::instance($this->cm->id));
      }
code_tokens: public function check_permissions ( ) { if ( $ this -> recordid ) { if ( data_isowner ( $ this -> recordid ) ) { return has_capability ( 'mod/data:exportownentry' , context_module :: instance ( $ this -> cm -> id ) ) ; } return has_capability ( 'mod/data:exportentry' , context_module :: instance ( $ this -> cm -> id ) ) ; } if ( $ this -> has_export_config ( ) && ! $ this -> get_export_config ( 'mineonly' ) ) { return has_capability ( 'mod/data:exportallentries' , context_module :: instance ( $ this -> cm -> id ) ) ; } return has_capability ( 'mod/data:exportownentry' , context_module :: instance ( $ this -> cm -> id ) ) ; }
docstring: Verify the user can still export this entry
  
  @return bool
docstring_tokens: Verify the user can still export this entry