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.
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.
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.