115 | | ''[tbd]'' |
| 115 | The {{{auth_Consent.consent_filter}}} method can be used to filter S3Resources by consent to a particular processing type: |
| 116 | |
| 117 | {{{#!python |
| 118 | resource.add_filter(s3db.auth_Consent.consent_filter("PIDSHARE", "~.person_id")) |
| 119 | }}} |
| 120 | |
| 121 | The field selector should identify a reference to pr_person (i.e. person_id). |
| 122 | |
| 123 | Only 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 | |