Checks whether the current user holds the given permissions on a resource.
The hook suspends until the first fetch succeeds, so data is always present.
data maps each requested permission to whether the user has it — keyed by
exactly the permission strings you passed.
Checks whether the current user holds the given permissions on a resource.
The hook suspends until the first fetch succeeds, so
datais always present.datamaps each requested permission to whether the user has it — keyed by exactly the permission strings you passed.