Merge pull request #1515 from chainsol/fix_account_delete
Change pop() to first() in commands/default/admin.py
This commit is contained in:
commit
25bfc8f9e8
1 changed files with 1 additions and 1 deletions
|
|
@ -301,7 +301,7 @@ class CmdDelAccount(COMMAND_DEFAULT_CLASS):
|
||||||
|
|
||||||
# one single match
|
# one single match
|
||||||
|
|
||||||
account = accounts.pop()
|
account = accounts.first()
|
||||||
|
|
||||||
if not account.access(caller, 'delete'):
|
if not account.access(caller, 'delete'):
|
||||||
string = "You don't have the permissions to delete that account."
|
string = "You don't have the permissions to delete that account."
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue