code: def allow(ctx, foreign_account, permission, weight, threshold, account):
      
      if not foreign_account:
          from bitsharesbase.account import PasswordKey
  
          pwd = click.prompt(
              "Password for Key Derivation", hide_input=True, confirmation_prompt=True
          )
          foreign_account = format(
              PasswordKey(account, pwd, permission).get_public(), "BTS"
          )
      print_tx(
          ctx.bitshares.allow(
              foreign_account,
              weight=weight,
              account=account,
              permission=permission,
              threshold=threshold,
          )
      )
docs: Add a key/account to an account's permission