diff --git a/cmd/policy-main.go b/cmd/policy-main.go index 3bb02df9..4a88ecc3 100644 --- a/cmd/policy-main.go +++ b/cmd/policy-main.go @@ -437,8 +437,11 @@ func runPolicyCmd(args cli.Args) { perms := accessPerms(args.Get(1)) targetURL := args.Get(2) if perms.isValidAccessPERM() { - probeErr = doSetAccess(ctx, targetURL, perms) operation = "set" + probeErr = doSetAccess(ctx, targetURL, perms) + if probeErr == nil { + perms, _, probeErr = doGetAccess(ctx, targetURL) + } } else if perms.isValidAccessFile() { probeErr = doSetAccessJSON(ctx, targetURL, perms) operation = "set-json"