(ctx context.Context, object rbac.Object)
| 345 | } |
| 346 | |
| 347 | func (s *PreparedRecorder) Authorize(ctx context.Context, object rbac.Object) error { |
| 348 | s.rw.Lock() |
| 349 | defer s.rw.Unlock() |
| 350 | |
| 351 | authzErr := s.prepped.Authorize(ctx, object) |
| 352 | if !s.usingSQL { |
| 353 | s.rec.recordAuthorize(s.subject, s.action, object, authzErr) |
| 354 | } |
| 355 | return authzErr |
| 356 | } |
| 357 | |
| 358 | func (s *PreparedRecorder) CompileToSQL(ctx context.Context, cfg regosql.ConvertConfig) (string, error) { |
| 359 | s.rw.Lock() |
nothing calls this directly
no test coverage detected