From 73fbf19088eca809dd070b63464786bf9ab6c4b5 Mon Sep 17 00:00:00 2001 From: Andrew Date: Mon, 29 Nov 2021 22:21:19 +0000 Subject: [PATCH] Add fix for windows Administrator lockout --- app/classes/shared/helpers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/classes/shared/helpers.py b/app/classes/shared/helpers.py index a5b91dc9..36958b9d 100644 --- a/app/classes/shared/helpers.py +++ b/app/classes/shared/helpers.py @@ -340,8 +340,8 @@ class Helpers: return False def checkRoot(self): - if helper.is_os_windows(): - if ctypes.windll.shell32.IsUserAnAdmin() == 0: + if self.is_os_windows(): + if ctypes.windll.shell32.IsUserAnAdmin() == 1: return True else: return False