Legalpad - allow for legalpad documents to be required to be signed for using Phabricator

Summary: Fixes T7159.

Test Plan:
Created a legalpad document that needed a signature and I was required to sign it no matter what page I hit. Signed it and things worked! Added a new legalpad document and I had to sign again!

Ran unit tests and they passed!

Logged out as a user who was roadblocked into signing a bunch of stuff and it worked!

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: Korvin, epriestley

Maniphest Tasks: T7159

Differential Revision: https://secure.phabricator.com/D11759
This commit is contained in:
Bob Trahan
2015-02-12 15:22:56 -08:00
parent d598edc5f3
commit d39da529ca
19 changed files with 219 additions and 28 deletions

View File

@@ -0,0 +1,5 @@
ALTER TABLE {$NAMESPACE}_user.phabricator_session
ADD signedLegalpadDocuments BOOL NOT NULL DEFAULT 0;
ALTER TABLE {$NAMESPACE}_legalpad.legalpad_document
ADD requireSignature BOOL NOT NULL DEFAULT 0;

View File

@@ -0,0 +1,2 @@
ALTER TABLE {$NAMESPACE}_legalpad.legalpad_document
ADD KEY `key_required` (requireSignature, dateModified);