- getUserData() ⇒
ReduxAction
Copies logged in user data to state reactively.
- userHasPermission(authStateOrId, permission) ⇒
boolean
Checks whether a user has a certain permission or not.
- getUserData() ⇒
ReduxAction
Copies logged in user data to state reactively.
- userHasPermission(authStateOrId, permission) ⇒
boolean
Checks whether a user has a certain permission or not.
Copies logged in user data to state reactively.
Kind: global function
Tag: Action
Checks whether a user has a certain permission or not.
Kind: global function
Returns: boolean
- - Returns true if the user has the specified permission(s).
Param | Type | Description |
---|---|---|
authStateOrId | object | string |
Pass in either the auth state tree (for client) or a user ID (for server). |
permission | string | Array.<string> |
Permission constant or array of permission constants. |
Copies logged in user data to state reactively.
Kind: global function
Tag: Action
Checks whether a user has a certain permission or not.
Kind: global function
Returns: boolean
- - Returns true if the user has the specified permission(s).
Param | Type | Description |
---|---|---|
authStateOrId | object | string |
Pass in either the auth state tree (for client) or a user ID (for server). |
permission | string | Array.<string> |
Permission constant or array of permission constants. |