Revert "Improve multi-authorizer errors"

This reverts commit 1c012f1c49.
This commit is contained in:
Samuel Davidson
2018-10-29 11:05:45 -07:00
parent 294e02ed4b
commit 3558f83957
2 changed files with 1 additions and 3 deletions

View File

@@ -227,7 +227,7 @@ func (pl policyList) Authorize(a authorizer.Attributes) (authorizer.Decision, st
return authorizer.DecisionAllow, "", nil
}
}
return authorizer.DecisionNoOpinion, "no ABAC policy matched", nil
return authorizer.DecisionNoOpinion, "No policy matched.", nil
// TODO: Benchmark how much time policy matching takes with a medium size
// policy file, compared to other steps such as encoding/decoding.
// Then, add Caching only if needed.