Regen-Digital / farm_regen_digital

farmOS module for Regen Digital
GNU General Public License v3.0
2 stars 1 forks source link

Deny access to the /farm/settings/modules form #23

Closed mstenta closed 1 year ago

mstenta commented 1 year ago

Farmier currently restricts access to the /farm/settings/modules page in "partner subscription" farmOS instances (Regen Digital instances fall under this umbrella).

This means that farmOS users with the "Account Admin" role in these instances will soon be able to enable additional modules.

If Regen Digital wants to continue restricting access to this page (to keep a more streamlines/curated experience for users by limiting which modules they can turn on), then this restriction will need to be recreated downstream of Farmier code.

This PR adds a simple route subscriber override to deny access to /farm/settings/modules whenever this module is enabled.