hasAllPrivileges

Function

Does a user have all the privileges in the passed in array

  • hasAllPrivileges(user: IUser, privileges: string[]) : boolean

Parameters

Parameter Type Default Notes
user Required IUser
privileges Required string[]

Returns

boolean

Function defined in packages/teams/src/utils/has-all-privileges.ts:8