https://cerbos.dev logo
Title
a

Anil Kumar G A

05/13/2023, 11:41 AM
i'm using below snippent to add or update the policy.
func (c *Client) AddOrUpdatePolicy(ctx context.Context) error {
    policySet := &cerbosclient.PolicySet{}
    if err := c.CerbosAdminClient.AddOrUpdatePolicy(ctx, policySet); err != nil {
        c.log.Errorf("Failed to add or update policy", err)
        return err
    }

    return nil
}
it is nt working, can someone help me on this
o

oguzhan

05/15/2023, 8:23 AM
hi @Anil Kumar G A, what is the error message saying?