diff options
Diffstat (limited to 'internal/commands/acl.go')
| -rw-r--r-- | internal/commands/acl.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/commands/acl.go b/internal/commands/acl.go index 528e12fb3..182c8c026 100644 --- a/internal/commands/acl.go +++ b/internal/commands/acl.go @@ -167,11 +167,11 @@ func accessControlCheckWriteOutput(object authorization.Object, subject authoriz switch { case appliedPos != 0 && (potentialPos == 0 || (potentialPos > appliedPos)): - fmt.Printf("\nThe policy '%s' from rule #%d will be applied to this request.\n\n", authorization.LevelToPolicy(applied.Rule.Policy), appliedPos) + fmt.Printf("\nThe policy '%s' from rule #%d will be applied to this request.\n\n", authorization.LevelToString(applied.Rule.Policy), appliedPos) case potentialPos != 0 && appliedPos != 0: - fmt.Printf("\nThe policy '%s' from rule #%d will potentially be applied to this request. If not policy '%s' from rule #%d will be.\n\n", authorization.LevelToPolicy(potential.Rule.Policy), potentialPos, authorization.LevelToPolicy(applied.Rule.Policy), appliedPos) + fmt.Printf("\nThe policy '%s' from rule #%d will potentially be applied to this request. If not policy '%s' from rule #%d will be.\n\n", authorization.LevelToString(potential.Rule.Policy), potentialPos, authorization.LevelToString(applied.Rule.Policy), appliedPos) case potentialPos != 0: - fmt.Printf("\nThe policy '%s' from rule #%d will potentially be applied to this request. Otherwise the policy '%s' from the default policy will be.\n\n", authorization.LevelToPolicy(potential.Rule.Policy), potentialPos, defaultPolicy) + fmt.Printf("\nThe policy '%s' from rule #%d will potentially be applied to this request. Otherwise the policy '%s' from the default policy will be.\n\n", authorization.LevelToString(potential.Rule.Policy), potentialPos, defaultPolicy) default: fmt.Printf("\nThe policy '%s' from the default policy will be applied to this request as no rules matched the request.\n\n", defaultPolicy) } |
