# PermissionLevel

Creates object for account and permission.

This object can be used to check account authentication or/and permission.

permission argument is optional. active permission will be used by default if no value is passed.

# Constructor

  • constructor(
      public actor: Name = new Name(),
      public permission: Name = Name.fromString("active")
    )
    
    Example:
      import { PermissionLevel } from 'proton-tsc'
    
      const payer = new PermissionLevel(Name.fromString("payer")) 
      // specifies permission for payer@active
    
      const buyer = new PermissionLevel(Name.fromString("buyer"), Name.fromString("current")) 
      // specifies permission for buyer@current