@main.command()<EOL>@click.pass_context<EOL>@onlineChain<EOL>@click.argument("<STR_LIT>", required=False, type=str)<EOL>@click.option("<STR_LIT>", type=str, help="<STR_LIT>")<EOL>@click.option(<EOL>"<STR_LIT>", default="<STR_LIT>", type=str, help="<STR_LIT>"<EOL>)<EOL>@click.option("<STR_LIT>", type=int, help="<STR_LIT>")<EOL>@click.option("<STR_LIT>", type=int, help="<STR_LIT>")<EOL>@unlockWallet<EOL>def allow(ctx, foreign_account, permission, weight, threshold, account):
if not foreign_account:<EOL><INDENT>from peerplaysbase.account import PasswordKey<EOL>pwd = click.prompt(<EOL>"<STR_LIT>", hide_input=True, confirmation_prompt=True<EOL>)<EOL>foreign_account = format(<EOL>PasswordKey(account, pwd, permission).get_public(), "<STR_LIT>"<EOL>)<EOL><DEDENT>pprint(<EOL>ctx.peerplays.allow(<EOL>foreign_account,<EOL>weight=weight,<EOL>account=account,<EOL>permission=permission,<EOL>threshold=threshold,<EOL>)<EOL>)<EOL>
Add a key/account to an account's permission