(ctx context.Context, subject Subject, action policy.Action, object Object)
| 836 | } |
| 837 | |
| 838 | func (c *authRecorder) Authorize(ctx context.Context, subject Subject, action policy.Action, object Object) error { |
| 839 | err := c.authz.Authorize(ctx, subject, action, object) |
| 840 | authorized := err == nil |
| 841 | recordAuthzCheck(ctx, action, object, authorized) |
| 842 | return err |
| 843 | } |
| 844 | |
| 845 | func (c *authRecorder) Prepare(ctx context.Context, subject Subject, action policy.Action, objectType string) (PreparedAuthorized, error) { |
| 846 | return c.authz.Prepare(ctx, subject, action, objectType) |
nothing calls this directly
no test coverage detected