mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
chore: only trace rbac.Filter (#4177)
This commit is contained in:
@@ -28,9 +28,6 @@ type PartialAuthorizer struct {
|
||||
var _ PreparedAuthorized = (*PartialAuthorizer)(nil)
|
||||
|
||||
func (pa *PartialAuthorizer) Authorize(ctx context.Context, object Object) error {
|
||||
ctx, span := tracing.StartSpan(ctx)
|
||||
defer span.End()
|
||||
|
||||
if pa.alwaysTrue {
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user