Client side permissions
Attaches an object with permissions data on the current user client-side.
Values can be checked by:
- boolean values (eg.
isSysAdmin: true
) - checking an array of ids for values (eg. organisation with id
1234
is ineditorForOrganisation: ['1234', '5678', '9012']
, so the current user is an editor for organisation1234
)