aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/elevate/shellexecute.go
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--elevate/shellexecute.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/elevate/shellexecute.go b/elevate/shellexecute.go
index 6933c8f5..2c4190e0 100644
--- a/elevate/shellexecute.go
+++ b/elevate/shellexecute.go
@@ -54,7 +54,7 @@ func ShellExecute(program string, arguments string, directory string, show int32
err = windows.ERROR_SUCCESS
return
}
- if !TokenIsMemberOfBuiltInAdministrator(processToken) {
+ if !TokenIsElevatedOrElevatable(processToken) {
err = windows.ERROR_ACCESS_DENIED
return
}