Function hasEffectivePermission

  • Returns true if the permission passed in 'desiredPermission' is in the permissions array passed as 'effectivePermissions'. This is a local function and does not make a call to the server.

    Parameters

    • effectivePermissions: string[]

      The permission set, typically retrieved for a given user or group.

    • desiredPermission: string

      A specific permission bit to check for.

    Returns boolean