Bug 1726547 - Don't show VPN promo link if enterprise policy is active. r=groovecoder

Differential Revision: https://phabricator.services.mozilla.com/D123113
This commit is contained in:
Mike Kaply 2021-08-31 16:00:17 +00:00
parent 97e39c52df
commit e7197d05e2

View File

@ -165,7 +165,8 @@ class AboutPrivateBrowsingParent extends JSWindowActorParent {
const currentRegion = Region.current || "";
return (
homeRegion.toLowerCase() !== "cn" &&
currentRegion.toLowerCase() !== "cn"
currentRegion.toLowerCase() !== "cn" &&
Services.policies.status !== Services.policies.ACTIVE
);
}
}