mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-19 05:12:41 +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:
parent
9b66f00484
commit
ac9c82fcdf
1 changed files with 1 additions and 1 deletions
|
@ -74,7 +74,7 @@ final class PhameBlogEditController
|
||||||
$errors[] = $error_text;
|
$errors[] = $error_text;
|
||||||
$e_custom_domain = $error_label;
|
$e_custom_domain = $error_label;
|
||||||
}
|
}
|
||||||
if ($blog->getJoinPolicy() != PhabricatorPolicies::POLICY_PUBLIC) {
|
if ($blog->getViewPolicy() != PhabricatorPolicies::POLICY_PUBLIC) {
|
||||||
$errors[] = pht(
|
$errors[] = pht(
|
||||||
'For custom domains to work, the blog must have a view policy of '.
|
'For custom domains to work, the blog must have a view policy of '.
|
||||||
'public.');
|
'public.');
|
||||||
|
|
Loading…
Reference in a new issue