Closed LugsoIn2 closed 3 years ago
Roles:
Gyms can upgrade a Normal User to Builder for Gyms
Roles:
* Normal Users * Gym Users * Operato (Philipp) * Builder for Gyms
Gyms can upgrade a Normal User to Builder for Gyms
Confirmed by Philipp
There are two variants.
We cannot use custom claims because cloud functions are required for this. These are, however, only included in the mandatory cost plan.
Therefore => via Firestore DB
Done.
See this: https://firebase.google.com/docs/firestore/solutions/role-based-access For Example: Gyms may only delete their own created content etc. https://firebase.google.com/docs/auth/admin/custom-claims#node.js