Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "security"

Index

Functions

getAttributePermission

  • Define which type of attribute render allowed for user

    Parameters

    • entityName: string

      CUBA model entity

    • attributeName: string
    • perms: PermissionInfo[] | undefined

      list of user permissions

    • roles: RoleInfo[] | undefined

      list of user roles

    Returns EntityAttrPermissionValue

    attribute could be not allowed to display (DENY), allowed for modification (MODIFY) or allowed in read only mode (VIEW).

getMaxAllowedAttrPerm

getMaxAllowedOpPerm

hasRole

isOperationAllowed

  • Define if operation (one of CRUD) on entity allowed or not for user

    Parameters

    • entityName: string

      CUBA model entity

    • operation: EntityOperationType

      operation to be checked (CRUD)

    • perms: PermissionInfo[] | undefined

      list of user permissions

    • roles: RoleInfo[] | undefined

      list of user roles

    Returns boolean

Generated using TypeDoc