From 7c44396b1c24ed24edc75801c8153bbcdefc5bf1 Mon Sep 17 00:00:00 2001 From: Gianmaria Del Monte Date: Wed, 6 Sep 2023 09:23:16 +0200 Subject: [PATCH] disable deny grant --- internal/grpc/interceptors/noshare/noshare.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/grpc/interceptors/noshare/noshare.go b/internal/grpc/interceptors/noshare/noshare.go index 30a6103b3b..28fd74620b 100644 --- a/internal/grpc/interceptors/noshare/noshare.go +++ b/internal/grpc/interceptors/noshare/noshare.go @@ -48,6 +48,7 @@ func NewUnary(_ map[string]interface{}) (grpc.UnaryServerInterceptor, int, error info.PermissionSet.AddGrant = false info.PermissionSet.RemoveGrant = false info.PermissionSet.UpdateGrant = false + info.PermissionSet.DenyGrant = false } } } @@ -58,6 +59,7 @@ func NewUnary(_ map[string]interface{}) (grpc.UnaryServerInterceptor, int, error statResp.Info.PermissionSet.AddGrant = false statResp.Info.PermissionSet.RemoveGrant = false statResp.Info.PermissionSet.UpdateGrant = false + statResp.Info.PermissionSet.DenyGrant = false } return resp, err case *provider.AddGrantRequest: