Changes between Version 18 and Version 19 of S3/ConsentTracking


Ignore:
Timestamp:
06/13/19 08:22:08 (5 years ago)
Author:
Dominic König
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • S3/ConsentTracking

    v18 v19  
    8282=== has_consented ===
    8383
    84 ''[tbd]''
     84To check whether a person has consented to a particular type of data processing, you can use the {{{auth_Consent.has_consented}}} method with the processing type code:
     85
     86{{{#!python
     87if s3db.auth_Consent.has_consented(person_id, "PIDSHARE"):
     88    # perform PIDSHARE processing
     89    pass
     90}}}
     91
     92This is a class method, so instantiation of auth_Consent is not required.
     93
     94{{{has_consented}}} makes sure that the consent record has not expired, and any consent option the user has consented to is still valid (obsolete=False). It does, however, not verify the integrity of the consent record.
    8595=== consent_query ===
    8696