Skip to content

Commit

Permalink
ln: don't assume English UI settings when checking for elevation (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukesampson committed Oct 27, 2013
1 parent 0fe6270 commit f7043c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ln.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public class kernel {
function isadmin {
$id = [System.Security.Principal.WindowsIdentity]::GetCurrent()
$p = new-object System.Security.Principal.WindowsPrincipal $id
$p.IsInRole("Administrators")
$p.isinrole([security.principal.windowsbuiltinrole]::administrator)
}

function symlink($target, $link_name, $is_dir) {
Expand Down

0 comments on commit f7043c7

Please sign in to comment.