Sterc / FormIt

A dynamic form processing Snippet for MODX Revolution
https://docs.modx.com/current/en/extras/formit
33 stars 58 forks source link

Permissions resolver assigns too much #272

Open Jako opened 2 years ago

Jako commented 2 years ago

Bug report

Summary

There is a bug with the permissions resolver. The formit policy is assigned to all policies. Not only to the ones that use the AdministratorTemplate policy template. That way, i.e. the Element policy uses 10 of 9 active policies after the install of FormIt in MODX 3.

Step to reproduce

Install Formit and look for the policies.

Observed behavior

The formit policy is assigned to all policies.

Expected behavior

It should assign the formit policy only to the templates that use the AdministratorTemplate policy termplate.

Environment

MODX 2.x and MODX 3.x.

This should be solved in combination with #246