craftercms / craftercms

Parent project for Crafter CMS. Issue tracking across all repositories and global builds.
GNU General Public License v3.0
282 stars 98 forks source link

Add new permission to allow bypassing the Site Policy via API #6717

Open jmendeza opened 3 weeks ago

jmendeza commented 3 weeks ago

Duplicates

Is your feature request related to a problem? Please describe.

Related to https://github.com/craftercms/craftercms/issues/6691

There are scenarios where a privileged user should be able to bypass the site policy rules, but it still makes sense to keep the policy.

For example, default site policy will transform to lowercase asset names. An automated ETL process might try to upload content items referencing assets with mixed case names.

Scenario:

Result:

Describe the solution you'd like

Add a new bypass_site_policy permission that will allow users to send a new byPassPolicy flag (default to false) to content write API to ignore the site-policy rules. UI will not send that flag. That permission will not be added by default.

jmendeza commented 3 weeks ago

This is related to https://github.com/craftercms/craftercms/issues/6691