Fix lastSession always return an error
Signed-off-by: Bryan Frimin <bryan@getprobo.com>
This commit is contained in:
@@ -81,6 +81,10 @@ func IsViewerDirective(ctx context.Context, obj any, next graphql.Resolver) (any
|
||||
if identity.ID != node.IdentityID {
|
||||
return nil, ErrForbidden
|
||||
}
|
||||
case *types.Session:
|
||||
if identity.ID != node.IdentityID {
|
||||
return nil, ErrForbidden
|
||||
}
|
||||
default:
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user