Function: userHasPermission()
function userHasPermission(state, ...params): boolean
Indicates whether user has the requested permission
Parameters
state
The first argument, often a Redux root state object.
params
...[object]
All additional arguments passed into the selector.
Returns
boolean
A derived value from the state.
Param
The entire Redux store
Param
BpSdkPermissions object
Param
Optional object to run permissions against