From 3811169d20cd477462a3e96bd877629872941c87 Mon Sep 17 00:00:00 2001 From: "Fabien \"egg\" O'Carroll" Date: Thu, 20 Oct 2022 11:44:51 +0700 Subject: [PATCH] Fixed visibility property on Tiers refs https://github.com/TryGhost/Team/issues/2078 This property should be settable to either 'public' or 'none' --- ghost/tiers/lib/Tier.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ghost/tiers/lib/Tier.js b/ghost/tiers/lib/Tier.js index cef403fab3..f544b9eb0e 100644 --- a/ghost/tiers/lib/Tier.js +++ b/ghost/tiers/lib/Tier.js @@ -59,11 +59,14 @@ module.exports = class Tier { this.#status = validateStatus(value); } - /** @type {'public'} */ + /** @type {'public'|'none'} */ #visibility; get visibility() { return this.#visibility; } + set visibility(value) { + this.#visibility = validateVisibility(value); + } /** @type {'paid'|'free'} */ #type;