Skip to main content
The <IsForbidden /> component is used to render content only if the user does not have a specific permission or has reached a specific quota.

Props

permission
string | string[]
The name(s) of the permission(s) the user must have to render the content.
quota
string | string[]
The name(s) of the available quota(s) the user must have reached to render the content.
children
ReactNode
The content to show when the user is forbidden.

Examples