Replace @nda directive with resolver helper
Export and request-access already know visibility and auth; a shared requireCompletedNDA call keeps NDA enforcement there and drops GraphQL PUBLIC probing. Signed-off-by: Émile Ré <emile@probo.com>
This commit is contained in:
@@ -65,7 +65,6 @@ func NewGraphQLHandler(
|
||||
sessionCookie: authn.NewCookie(&cookieConfig),
|
||||
},
|
||||
Directives: schema.DirectiveRoot{
|
||||
Nda: newNDADirective(logger, visitorSvc, esignSvc),
|
||||
Authentication: authentication.Directive,
|
||||
SessionOnly: session.Directive,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user