feat: initial setup, collections, caregiver frontend

This commit is contained in:
2025-12-02 11:32:45 +01:00
parent cee5925f25
commit 274ac8afa5
48 changed files with 6149 additions and 909 deletions

View File

@@ -17,15 +17,15 @@ export const updateAndDeleteAccess: Access = ({ req, id }) => {
/**
* Constrains update and delete access to users that belong
* to the same tenant as the tenant-admin making the request
* to the same tenant as the admin making the request
*
* You may want to take this a step further with a beforeChange
* hook to ensure that the a tenant-admin can only remove users
* hook to ensure that the admin can only remove users
* from their own tenant in the tenants array.
*/
return {
'tenants.tenant': {
in: getUserTenantIDs(user, 'tenant-admin'),
in: getUserTenantIDs(user, 'admin'),
},
}
}