Type alias UseUserHasRolePredicate

UseUserHasRolePredicate: ((...rolesToCheck) => boolean)

A function that checks if current user is part of all roles.

Type declaration

    • (...rolesToCheck): boolean
    • Parameters

      • Rest ...rolesToCheck: string[]

      Returns boolean

Params

[rolesToCheck] Name of one or more groups to check.

Returns

Is part of all rolesToCheck or not.

Generated using TypeDoc