Differential D18693 Diff 44881 src/applications/legalpad/controller/LegalpadDocumentSignController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/legalpad/controller/LegalpadDocumentSignController.php
Show First 20 Lines • Show All 230 Lines • ▼ Show 20 Lines | public function handleRequest(AphrontRequest $request) { | ||||
$can_edit = PhabricatorPolicyFilter::hasCapability( | $can_edit = PhabricatorPolicyFilter::hasCapability( | ||||
$viewer, | $viewer, | ||||
$document, | $document, | ||||
PhabricatorPolicyCapability::CAN_EDIT); | PhabricatorPolicyCapability::CAN_EDIT); | ||||
// Use the last content update as the modified date. We don't want to | // Use the last content update as the modified date. We don't want to | ||||
// show that a document like a TOS was "updated" by an incidental change | // show that a document like a TOS was "updated" by an incidental change | ||||
// to a field like the preamble or privacy settings which does not acutally | // to a field like the preamble or privacy settings which does not actually | ||||
// affect the content of the agreement. | // affect the content of the agreement. | ||||
$content_updated = $document_body->getDateCreated(); | $content_updated = $document_body->getDateCreated(); | ||||
// NOTE: We're avoiding `setPolicyObject()` here so we don't pick up | // NOTE: We're avoiding `setPolicyObject()` here so we don't pick up | ||||
// extra UI elements that are unnecessary and clutter the signature page. | // extra UI elements that are unnecessary and clutter the signature page. | ||||
// These details are available on the "Manage" page. | // These details are available on the "Manage" page. | ||||
$header = id(new PHUIHeaderView()) | $header = id(new PHUIHeaderView()) | ||||
->setHeader($title) | ->setHeader($title) | ||||
▲ Show 20 Lines • Show All 454 Lines • Show Last 20 Lines |