User must always belong to at least one organization
In Cells 1.0 every user needs to belong to at least one organization. The user's first organization is added when the user is created.
We need to:
- Validate user belongs to an organization on create
- Prevent removal of user's last organization
Currently there is a callback on user create that associates an organization. This is undergoing an overhaul and these constraints will help maintain integrity.
Edited by Alex Pooley