Add fix for windows Administrator lockout

This commit is contained in:
Andrew 2021-11-29 22:21:19 +00:00
parent 79284a9094
commit 73fbf19088

View File

@ -340,8 +340,8 @@ class Helpers:
return False return False
def checkRoot(self): def checkRoot(self):
if helper.is_os_windows(): if self.is_os_windows():
if ctypes.windll.shell32.IsUserAnAdmin() == 0: if ctypes.windll.shell32.IsUserAnAdmin() == 1:
return True return True
else: else:
return False return False