original_string: protected function deleteUserRole()
      {
          $this->controlAccess('user_role_delete');
  
          if ($this->role->delete($this->data_role['role_id'])) {
              $this->redirect('admin/user/role', $this->text('Role has been deleted'), 'success');
          }
  
          $this->redirect('', $this->text('Role has not been deleted'), 'warning');
      }
code: protected function deleteUserRole()
      {
          $this->controlAccess('user_role_delete');
  
          if ($this->role->delete($this->data_role['role_id'])) {
              $this->redirect('admin/user/role', $this->text('Role has been deleted'), 'success');
          }
  
          $this->redirect('', $this->text('Role has not been deleted'), 'warning');
      }
code_tokens: protected function deleteUserRole ( ) { $ this -> controlAccess ( 'user_role_delete' ) ; if ( $ this -> role -> delete ( $ this -> data_role [ 'role_id' ] ) ) { $ this -> redirect ( 'admin/user/role' , $ this -> text ( 'Role has been deleted' ) , 'success' ) ; } $ this -> redirect ( '' , $ this -> text ( 'Role has not been deleted' ) , 'warning' ) ; }
docstring: Deletes a user role
docstring_tokens: Deletes a user role