data-govt-nz / ckanext-security

A CKAN extension to hold various security improvements for CKAN
GNU Affero General Public License v3.0
25 stars 32 forks source link

Replace Monkey Patching with `IValidators` Implementation #79

Open JVickery-TBS opened 1 month ago

JVickery-TBS commented 1 month ago

fix(logic): replace monkey patching;

Because CKAN Core does not really have schema/pluggables for the User stuff as of yet, we just have to append any validators to the contextual schemas in chained user action methods.