tiki-deprecated / platform-cmp-trail-endpoint

Create immutable audit trail records for legal data licensing
https://mytiki.com/platform/compliance
GNU Affero General Public License v3.0
7 stars 3 forks source link

Modify applyConsent #223

Closed ricardobrg closed 1 year ago

ricardobrg commented 1 year ago

applyConsent should become guard() and return a status object containing 'isAllowed', 'license', and 'message' with optional functions to execute onTrue() and onFalse(). The status object should be passed to the optional functions.

mike-audi commented 1 year ago

Follow spec here: https://docs.mytiki.com/docs/enforce-license