BetaBetaReturns an observable of PermissionCheckResult
This API is returns an observable (vs a promise) so the consumer can react to incoming changes to the user permissions (e.g. for changing debug roles).
This API also accepts a null document in which it should return
granted: true
Hidden