Merge pull request #12495 from netchampfaris/hotfix-add-ac-2
[fix] is_root check
This commit is contained in:
commit
af7df6ba50
@ -252,7 +252,7 @@ def add_ac(args=None):
|
||||
if not ac.parent_account:
|
||||
ac.parent_account = args.get("parent")
|
||||
|
||||
if ac.is_root:
|
||||
if getattr(ac, 'is_root', None):
|
||||
ac.parent_account=''
|
||||
|
||||
ac.old_parent = ""
|
||||
|
Loading…
Reference in New Issue
Block a user