No module actions in production if not connected.

Hide the module activate/deactivate and configure options on the module modals when not in dev mode and the user is not connected.