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.
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.