From ac9c82fcdf035efa7472efea0e399d857ee561e5 Mon Sep 17 00:00:00 2001 From: epriestley Date: Mon, 5 May 2014 10:54:44 -0700 Subject: [PATCH] Check view policy, not join policy, when raising an error for Phame custom domains Summary: A user in IRC hit this; this looks like a typo. Test Plan: Created a new blog with a public view policy, a non-public join policy, and a custom domain. Reviewers: btrahan Reviewed By: btrahan Subscribers: legien, epriestley Differential Revision: https://secure.phabricator.com/D8980 --- .../phame/controller/blog/PhameBlogEditController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/applications/phame/controller/blog/PhameBlogEditController.php b/src/applications/phame/controller/blog/PhameBlogEditController.php index 0f0d333ebb..06afae410c 100644 --- a/src/applications/phame/controller/blog/PhameBlogEditController.php +++ b/src/applications/phame/controller/blog/PhameBlogEditController.php @@ -74,7 +74,7 @@ final class PhameBlogEditController $errors[] = $error_text; $e_custom_domain = $error_label; } - if ($blog->getJoinPolicy() != PhabricatorPolicies::POLICY_PUBLIC) { + if ($blog->getViewPolicy() != PhabricatorPolicies::POLICY_PUBLIC) { $errors[] = pht( 'For custom domains to work, the blog must have a view policy of '. 'public.'); -- 2.51.2