Skip to content
This repository has been archived by the owner on Apr 16, 2018. It is now read-only.

Latest commit

 

History

History

docs

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 

Functions

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.

getUserData() ⇒ ReduxAction

Copies logged in user data to state reactively.

Kind: global function
Tag: Action

userHasPermission(authStateOrId, permission) ⇒ boolean

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.

getUserData() ⇒ ReduxAction

Copies logged in user data to state reactively.

Kind: global function
Tag: Action

userHasPermission(authStateOrId, permission) ⇒ boolean

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.