Components
AbbreviateNumberActionLinkAdaptiveCardAffixAuthorityCheckCalendarViewChartConfirmDialogContainerCustomFormatInputDataTableDebounceInputDoubleSidedImageEllipsisButtonGanttChartGrowShrinkValueIconTextImageGalleryLoadingMasonryMediaSkeletonNavToggleNumericInputOtpInputPasswordInputPatternInputRegionMapRichTextEditorSegmentItemOptionStickyFooterSyntaxHighlighterUsersAvatarGroup
AuthorityCheck
AuthorityCheck component help to check whether the current user has permmision to access, it can be use to display or hide some elements that require permmission by certain roles.
Example
example usage
Users with different role
User A: ADMIN
User B: USER
User C: GUEST
User D: ADMIN,USER
Roles who can access: ADMIN,USER
Result (Users who able to access): User A, User B, User D,
API
AuthorityCheck
| Prop | Description | Type | Default |
|---|---|---|---|
| authority | List of roles that have rights to access the wrapped elements | Array | [] |
| userAuthority | List of the user roles | Array | [] |