Check permissions in the frontend
If you need to validate a rule in the frontend we got'chu.
Just use the predefined Guard.getAbility query with a regular useQuery hook.
If you need to validate a rule in the frontend we got'chu.
Just use the predefined Guard.getAbility query with a regular useQuery hook.