POLYTALON / climbing-gym-app

App designed for climbing gyms and climbers alike.
https://polytalon.com/
GNU General Public License v3.0
14 stars 1 forks source link

ACL (User Roles) creation Firebase for User, Gyms and Provider #7

Closed LugsoIn2 closed 3 years ago

LugsoIn2 commented 3 years ago

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

LugsoIn2 commented 3 years ago

Roles:

Gyms can upgrade a Normal User to Builder for Gyms

LugsoIn2 commented 3 years ago

Roles:

* Normal Users

* Gym Users

* Operato (Philipp)

* Builder for Gyms

Gyms can upgrade a Normal User to Builder for Gyms

Confirmed by Philipp

LugsoIn2 commented 3 years ago

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

BernhardGundel commented 3 years ago

Done.