diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index b1e8088..fd6d24f 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -4,11 +4,9 @@
-
+
-
-
-
+
@@ -155,7 +153,6 @@
-
@@ -180,7 +177,8 @@
-
+
+
true
diff --git a/pkg/internal/grpc/realms.go b/pkg/internal/grpc/realms.go
index af6343a..589875b 100644
--- a/pkg/internal/grpc/realms.go
+++ b/pkg/internal/grpc/realms.go
@@ -27,7 +27,7 @@ func (v *Server) ListCommunityRealm(ctx context.Context, empty *proto.ListRealmR
Description: item.Description,
IsPublic: item.IsPublic,
IsCommunity: item.IsCommunity,
- AccessPolicy: hyper.EncodeAccessPolicy(item.AccessPolicy),
+ AccessPolicy: hyper.EncodeMap(item.AccessPolicy),
}
if item.Avatar != nil {
info.Avatar = *item.Avatar
@@ -59,7 +59,7 @@ func (v *Server) ListAvailableRealm(ctx context.Context, request *proto.LookupUs
Description: item.Description,
IsPublic: item.IsPublic,
IsCommunity: item.IsCommunity,
- AccessPolicy: hyper.EncodeAccessPolicy(item.AccessPolicy),
+ AccessPolicy: hyper.EncodeMap(item.AccessPolicy),
}
if item.Avatar != nil {
info.Avatar = *item.Avatar
@@ -91,7 +91,7 @@ func (v *Server) ListOwnedRealm(ctx context.Context, request *proto.LookupUserRe
Description: item.Description,
IsPublic: item.IsPublic,
IsCommunity: item.IsCommunity,
- AccessPolicy: hyper.EncodeAccessPolicy(item.AccessPolicy),
+ AccessPolicy: hyper.EncodeMap(item.AccessPolicy),
}
if item.Avatar != nil {
info.Avatar = *item.Avatar
@@ -132,7 +132,7 @@ func (v *Server) GetRealm(ctx context.Context, request *proto.LookupRealmRequest
Description: realm.Description,
IsPublic: realm.IsPublic,
IsCommunity: realm.IsCommunity,
- AccessPolicy: hyper.EncodeAccessPolicy(realm.AccessPolicy),
+ AccessPolicy: hyper.EncodeMap(realm.AccessPolicy),
}
if realm.Avatar != nil {
info.Avatar = *realm.Avatar