fix: make react-admin compatible with cubicweb anonymous mode
Allows users to configure their react-admin instance for anonymous access. When this is enabled, users can freely navigate through List and Show modes, but access to Edit and Create modes is still restricted and redirects to the login page.
Uses a workaround for issue https://github.com/marmelab/react-admin/issues/7829
Edited by Arnaud Vergnet