diff --git a/src/__phutil_library_map__.php b/src/__phutil_library_map__.php index ed30866310..a551e660ce 100644 --- a/src/__phutil_library_map__.php +++ b/src/__phutil_library_map__.php @@ -842,6 +842,7 @@ phutil_register_library_map(array( 'LegalpadDocumentEditor' => 'applications/legalpad/editor/LegalpadDocumentEditor.php', 'LegalpadDocumentListController' => 'applications/legalpad/controller/LegalpadDocumentListController.php', 'LegalpadDocumentQuery' => 'applications/legalpad/query/LegalpadDocumentQuery.php', + 'LegalpadDocumentRemarkupRule' => 'applications/legalpad/remarkup/LegalpadDocumentRemarkupRule.php', 'LegalpadDocumentSearchEngine' => 'applications/legalpad/query/LegalpadDocumentSearchEngine.php', 'LegalpadDocumentSignController' => 'applications/legalpad/controller/LegalpadDocumentSignController.php', 'LegalpadDocumentSignature' => 'applications/legalpad/storage/LegalpadDocumentSignature.php', @@ -3438,6 +3439,7 @@ phutil_register_library_map(array( 1 => 'PhabricatorApplicationSearchResultsControllerInterface', ), 'LegalpadDocumentQuery' => 'PhabricatorCursorPagedPolicyAwareQuery', + 'LegalpadDocumentRemarkupRule' => 'PhabricatorRemarkupRuleObject', 'LegalpadDocumentSearchEngine' => 'PhabricatorApplicationSearchEngine', 'LegalpadDocumentSignController' => 'LegalpadController', 'LegalpadDocumentSignature' => diff --git a/src/applications/legalpad/application/PhabricatorApplicationLegalpad.php b/src/applications/legalpad/application/PhabricatorApplicationLegalpad.php index 62b61fa97d..7b9dd4b0b5 100644 --- a/src/applications/legalpad/application/PhabricatorApplicationLegalpad.php +++ b/src/applications/legalpad/application/PhabricatorApplicationLegalpad.php @@ -1,8 +1,5 @@ \d+)' => 'LegalpadDocumentSignController', diff --git a/src/applications/legalpad/remarkup/LegalpadDocumentRemarkupRule.php b/src/applications/legalpad/remarkup/LegalpadDocumentRemarkupRule.php new file mode 100644 index 0000000000..bb2d8fe113 --- /dev/null +++ b/src/applications/legalpad/remarkup/LegalpadDocumentRemarkupRule.php @@ -0,0 +1,19 @@ +getEngine()->getConfig('viewer'); + + return id(new LegalpadDocumentQuery()) + ->setViewer($viewer) + ->withIDs($ids) + ->execute(); + } + +}