mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2025-01-19 01:35:28 +01:00
Merge branch 'pretzel-windows' into 'dev'
Add fix for windows Administrator lockout See merge request crafty-controller/crafty-commander!103
This commit is contained in:
commit
e8f36cce8d
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user