Changes between Version 20 and Version 21 of S3/ConsentTracking


Ignore:
Timestamp:
06/13/19 08:38:46 (6 years ago)
Author:
Dominic König
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • S3/ConsentTracking

    v20 v21  
    113113=== consent_filter ===
    114114
    115 ''[tbd]''
     115The {{{auth_Consent.consent_filter}}} method can be used to filter S3Resources by consent to a particular processing type:
     116
     117{{{#!python
     118resource.add_filter(s3db.auth_Consent.consent_filter("PIDSHARE", "~.person_id"))
     119}}}
     120
     121The field selector should identify a reference to pr_person (i.e. person_id).
     122
     123Only one consent filter can be added to the same S3Resource instance.
     124
     125{{{consent_filter}}} is a class method, so instantiation of {{{auth_Consent}}} is not required.
     126
     127{{{consent_filter}}} will take into account whether consent record or consent option have expired, but it will not verify the integrity of any consent record.
     128
    116129== Consent Expiry ==
    117130