original_string: protected function build_sql_for_roles_filter() {
          foreach ($this->acceptancesfilter->get_role_filters() as $roleid) {
              $this->sql->where .= ' AND ' . $this->sql_has_role([$roleid => $roleid]);
          }
      }
code: protected function build_sql_for_roles_filter() {
          foreach ($this->acceptancesfilter->get_role_filters() as $roleid) {
              $this->sql->where .= ' AND ' . $this->sql_has_role([$roleid => $roleid]);
          }
      }
code_tokens: protected function build_sql_for_roles_filter ( ) { foreach ( $ this -> acceptancesfilter -> get_role_filters ( ) as $ roleid ) { $ this -> sql -> where .= ' AND ' . $ this -> sql_has_role ( [ $ roleid => $ roleid ] ) ; } }
docstring: If there is a filter by user roles add it to the SQL query.
docstring_tokens: If there is a filter by user roles add it to the SQL query .