userHasPrivilege
Parameters
Parameter | Type | Default | Notes |
---|---|---|---|
user Optional | IUser | IDiscussionsUser | {} | |
privilege Required | Privilege |
Returns
boolean
Function defined in discussions/src/utils/platform.ts:59
Parameter | Type | Default | Notes |
---|---|---|---|
user Optional | IUser | IDiscussionsUser | {} | |
privilege Required | Privilege |