This is module provide domain access control for any fieldable entities.
You will need the domain_access module to be enabled.
Install the module as any other module.
An admin user should use administer domains permission to manage the module settings.
Go to settings page admin/structure/domain/entities and enable entity types to manage domain access.
After enabling entity types you can configure domain access for bundles of enabled entity types.
You can choose for each bundle the assignation behavior you want to use :
- Affiliate automatically created entity to a value (no widget on entity creation form, auto-assignation)
- User choose affiliate, with a default value (form widget on the entity creation form)
Then you can set access permissions for roles. The module provide premissions that based on following operations:
- create
- update
- view
- view unpublished (only if entity type has method
isPublished()) - delete
Each operation has following permissions:
- allow on any domains for whole entity type (include all bundles)
- allow on assigned for whole entity type (include all bundles)
- allow on any domains for specific bundle
- allow on assigned for specific bundle
Assign role to specific user and try to perform some operations to check.
All managed bundles has new views filter Current domain that allow to check availability of entity instance on current domain. Just add the filter and select Yes/No to filter view by current domain.
Note: Usage of this filter force add DISTINCT to views query.
Domain access module provide own domain access functions for User and Node entity types.
Widget Engine module provide own domain access functions for Widget entity type.
Domain Access Entity is simmilar project to provide domain access functions for any entities.
Some entity types can be ignored to use another solutions of domain access management. After installations the config contain following entity types to ignore:
node- should usedomain_accessmoduleuser- should usedomain_accessmodulewidget- should usewidget_engine_domain_accessmodule
- Add tests
- Create config page for ignore list
Config of this module based on code of Domain Access Entity module.
Current maintainers: