84 | | ''[tbd]'' |
| 84 | To 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 |
| 87 | if s3db.auth_Consent.has_consented(person_id, "PIDSHARE"): |
| 88 | # perform PIDSHARE processing |
| 89 | pass |
| 90 | }}} |
| 91 | |
| 92 | This 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. |