Skip to content

Commit f702bb3

Browse files
committed
Revert "fix(rbac): drop permissions which the current version of the client does not know how to read"
This reverts commit eafa90a.
1 parent eafa90a commit f702bb3

2 files changed

Lines changed: 0 additions & 5 deletions

File tree

src/main/java/io/weaviate/client6/v1/api/rbac/Permission.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ enum Kind implements JsonEnum<Kind> {
3636
GROUPS("groups"),
3737
ROLES("roles"),
3838
NODES("nodes"),
39-
NAMESPACES("namespaces"),
4039
TENANTS("tenants"),
4140
REPLICATE("replicate"),
4241
USERS("users"),

src/main/java/io/weaviate/client6/v1/api/rbac/Role.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import java.io.IOException;
44
import java.util.Arrays;
55
import java.util.List;
6-
import java.util.Objects;
76

87
import com.google.gson.Gson;
98
import com.google.gson.TypeAdapter;
@@ -44,9 +43,6 @@ public T read(JsonReader in) throws IOException {
4443
if (role.permissions == null) {
4544
return (T) role;
4645
}
47-
// Permissions which are not known to this client version
48-
// will be returned as null; we should drop them before merging.
49-
role.permissions.removeIf(Objects::isNull);
5046
return (T) new Role(role.name(), Permission.merge(role.permissions));
5147
}
5248
};

0 commit comments

Comments
 (0)