Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15386887
D13676.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
D13676.diff
View Options
diff --git a/src/applications/people/controller/PhabricatorPeopleCalendarController.php b/src/applications/people/controller/PhabricatorPeopleCalendarController.php
--- a/src/applications/people/controller/PhabricatorPeopleCalendarController.php
+++ b/src/applications/people/controller/PhabricatorPeopleCalendarController.php
@@ -5,6 +5,10 @@
private $username;
+ public function shouldAllowPublic() {
+ return true;
+ }
+
public function shouldRequireAdmin() {
return false;
}
diff --git a/src/applications/people/controller/PhabricatorPeopleProfileController.php b/src/applications/people/controller/PhabricatorPeopleProfileController.php
--- a/src/applications/people/controller/PhabricatorPeopleProfileController.php
+++ b/src/applications/people/controller/PhabricatorPeopleProfileController.php
@@ -5,6 +5,10 @@
private $username;
+ public function shouldAllowPublic() {
+ return true;
+ }
+
public function shouldRequireAdmin() {
return false;
}
diff --git a/src/applications/people/controller/PhabricatorPeopleProfileEditController.php b/src/applications/people/controller/PhabricatorPeopleProfileEditController.php
--- a/src/applications/people/controller/PhabricatorPeopleProfileEditController.php
+++ b/src/applications/people/controller/PhabricatorPeopleProfileEditController.php
@@ -66,15 +66,25 @@
->setUser($viewer);
$field_list->appendFieldsToForm($form);
-
$form
->appendChild(
id(new AphrontFormSubmitControl())
->addCancelButton($profile_uri)
->setValue(pht('Save Profile')));
+ $allow_public = PhabricatorEnv::getEnvConfig('policy.allow-public');
+ $note = null;
+ if ($allow_public) {
+ $note = id(new PHUIInfoView())
+ ->setSeverity(PHUIInfoView::SEVERITY_WARNING)
+ ->appendChild(pht(
+ 'Information on user profiles on this install is publicly '.
+ 'visible.'));
+ }
+
$form_box = id(new PHUIObjectBoxView())
->setHeaderText(pht('Edit Profile'))
+ ->setInfoView($note)
->setValidationException($validation_exception)
->setForm($form);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Mar 16, 1:27 AM (4 d, 7 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7381846
Default Alt Text
D13676.diff (2 KB)
Attached To
Mode
D13676: Allow public viewing of profiles and people calendars
Attached
Detach File
Event Timeline
Log In to Comment