useAuthority

useAuthority hook help to check whether the current user has permmision to access.

Example

Params
paramDescriptionTypeDefault
userAuthorityList of the user rolesArray[]
authorityList of roles that allow to accessArray[]
Return
returnDescriptionTypeDefault
roleMatchedResult of authority matchboolean-