original_string: protected function controlAccessCredentials()
      {
          if (empty($this->current_user['hash']) || empty($this->current_user['status'])) {
              $this->session->delete();
              $this->url->redirect('login');
          }
  
          if (!gplcart_string_equals($this->current_user['hash'], $this->user->getSession('hash'))) {
              $this->session->delete();
              $this->url->redirect('login');
          }
  
          if ($this->current_user['role_id'] != $this->user->getRoleId()) {
              $this->session->delete();
              $this->url->redirect('login');
          }
      }
code: protected function controlAccessCredentials()
      {
          if (empty($this->current_user['hash']) || empty($this->current_user['status'])) {
              $this->session->delete();
              $this->url->redirect('login');
          }
  
          if (!gplcart_string_equals($this->current_user['hash'], $this->user->getSession('hash'))) {
              $this->session->delete();
              $this->url->redirect('login');
          }
  
          if ($this->current_user['role_id'] != $this->user->getRoleId()) {
              $this->session->delete();
              $this->url->redirect('login');
          }
      }
code_tokens: protected function controlAccessCredentials ( ) { if ( empty ( $ this -> current_user [ 'hash' ] ) || empty ( $ this -> current_user [ 'status' ] ) ) { $ this -> session -> delete ( ) ; $ this -> url -> redirect ( 'login' ) ; } if ( ! gplcart_string_equals ( $ this -> current_user [ 'hash' ] , $ this -> user -> getSession ( 'hash' ) ) ) { $ this -> session -> delete ( ) ; $ this -> url -> redirect ( 'login' ) ; } if ( $ this -> current_user [ 'role_id' ] != $ this -> user -> getRoleId ( ) ) { $ this -> session -> delete ( ) ; $ this -> url -> redirect ( 'login' ) ; } }
docstring: Controls the current user credentials, such as status, role, password hash...
docstring_tokens: Controls the current user credentials such as status role password hash ...