Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "access-control/AccessControl"

Index

Functions

Const AccessControl

  • 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 and SpecificPermAccessControl when condition involves one or more specific permissions.

    Parameters

    Returns null | Element

areAllRequirementsSatisfied

areAttributeRequirementsSatisfied

areCustomRequirementsSatisfied

  • areCustomRequirementsSatisfied(customReqs?: undefined | function): boolean

areEntityRequirementsSatisfied

areSpecificRequirementsSatisfied

  • areSpecificRequirementsSatisfied(mainStore: MainStore, specificReqs?: string[]): boolean

injectDisabledProp

  • injectDisabledProp(children: React.ReactNode, disabledPropName: string, disabledPropValue: any): React.ReactNode

Generated using TypeDoc