firecmsco / firecms

Awesome Firebase/Firestore-based CMS. The missing admin panel for your Firebase project!
https://firecms.co
Other
1.15k stars 184 forks source link

Permissions #524

Closed psimondk closed 7 months ago

psimondk commented 1 year ago

First off - This is an incredible piece of work - the 1.x to 2.x upgrade definitely have made things much easier and productive. I was able to create most of the backend for a climate app in 4 half-days, sub collections, maps, hidden fields and all.

Now for the issue.

Is the example in the documentation for 2.0.0 - https://firecms.co/docs/collections/permissions - correct?

First off nothing seems to go into 'authController.extra?.roles.' secondly it gives errors on path and context:

Property 'path' does not exist on type 'PermissionsBuilderProps<EntityCollection ... Property 'context' does not exist on type 'PermissionsBuilderProps<EntityCollection ...

Am asking because I would need to check permissions in order to show correct collections based on those.

fgatti675 commented 7 months ago

Sorry for the late reply! I am closing this since we are now at version 3, and all that has changed :) Thanks!