check owner role before updating owner ip list

This commit is contained in:
Ayush Saini 2023-06-19 22:29:45 +05:30
parent bf4c01c291
commit 4d046f4b0b

View file

@ -75,6 +75,7 @@ class AccountUtil:
def updateOwnerIps(): def updateOwnerIps():
if "owner" in pdata.get_roles():
accountIds = pdata.get_roles()["owner"]["ids"] accountIds = pdata.get_roles()["owner"]["ids"]
profiles = pdata.get_profiles() profiles = pdata.get_profiles()