AccessControl(props: PropsWithChildren<AccessControlProps>): null | Element
This component can be used to conditionally render other components (which we call access-controlled components)
based on user permissions and other conditions.
This component is intended to be used in complex cases (such as when requirements includes multiple types of permissions,
e.g. an entity permission and a specific permission).
In most cases simpler components should be used instead:
EntityPermAccessControl when condition involves a single entity CRUD permission,
AttrPermAccessControl when condition involves a single entity attribute permission.
This component can be used to conditionally render other components (which we call access-controlled components) based on user permissions and other conditions.
This component is intended to be used in complex cases (such as when requirements includes multiple types of permissions, e.g. an entity permission and a specific permission). In most cases simpler components should be used instead: EntityPermAccessControl when condition involves a single entity CRUD permission, AttrPermAccessControl when condition involves a single entity attribute permission.