Stream version nit after ff0f540
and ce60585
This commit is contained in:
parent
468bae29f7
commit
0631322dda
|
@ -145,7 +145,7 @@ public final class GetUserPrivilegesResponse extends ActionResponse {
|
|||
return new FieldPermissionsDefinition.FieldGrantExcludeGroup(grant, exclude);
|
||||
}));
|
||||
queries = Collections.unmodifiableSet(in.readSet(StreamInput::readBytesReference));
|
||||
if (in.getVersion().onOrAfter(Version.V_7_0_0)) {
|
||||
if (in.getVersion().onOrAfter(Version.V_6_7_0)) {
|
||||
this.allowRestrictedIndices = in.readBoolean();
|
||||
} else {
|
||||
this.allowRestrictedIndices = false;
|
||||
|
@ -254,7 +254,7 @@ public final class GetUserPrivilegesResponse extends ActionResponse {
|
|||
output.writeOptionalStringArray(fields.getExcludedFields());
|
||||
});
|
||||
out.writeCollection(queries, StreamOutput::writeBytesReference);
|
||||
if (out.getVersion().onOrAfter(Version.V_7_0_0)) {
|
||||
if (out.getVersion().onOrAfter(Version.V_6_7_0)) {
|
||||
out.writeBoolean(allowRestrictedIndices);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -613,7 +613,7 @@ public class RoleDescriptor implements ToXContentObject {
|
|||
this.deniedFields = in.readOptionalStringArray();
|
||||
this.privileges = in.readStringArray();
|
||||
this.query = in.readOptionalBytesReference();
|
||||
if (in.getVersion().onOrAfter(Version.V_7_0_0)) {
|
||||
if (in.getVersion().onOrAfter(Version.V_6_7_0)) {
|
||||
allowRestrictedIndices = in.readBoolean();
|
||||
} else {
|
||||
allowRestrictedIndices = false;
|
||||
|
@ -627,7 +627,7 @@ public class RoleDescriptor implements ToXContentObject {
|
|||
out.writeOptionalStringArray(deniedFields);
|
||||
out.writeStringArray(privileges);
|
||||
out.writeOptionalBytesReference(query);
|
||||
if (out.getVersion().onOrAfter(Version.V_7_0_0)) {
|
||||
if (out.getVersion().onOrAfter(Version.V_6_7_0)) {
|
||||
out.writeBoolean(allowRestrictedIndices);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue