Organisation Roles
Intro
The Organisation Roles model allows for independent roles to be allocated to a specific organisation. Every organisation is different, so having a role-to-org specific relationship makes sense.
Global roles
There are some roles that are global for every organisation:
- CEO
- OPAL
These roles are managed in the OrganisationRoles enum
Adding global roles
When an organisation is created, the global roles are added by default via the OrganisationObserver boot methods. These roles are auto populated for every organisation.
Managing global roles
In the organisation roles table, the global roles cannot be deleted or edited. This is handled in the SettingsRolesTableRow.vue component.
Template Organisation Roles
When an organisation is created, a set of roles is created off of the template organisation