1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-23 14:00:56 +01:00

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
This commit is contained in:
epriestley 2014-05-05 10:54:44 -07:00
parent 9b66f00484
commit ac9c82fcdf

View file

@ -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.');