Skip to content

Commit 23d3f79

Browse files
committedJan 7, 2012
Fix privileged user detection.
1 parent d67d8e7 commit 23d3f79

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎wre/lib/WRE/Host.pm

+1-1
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ Returns a boolean indicating whether the current user is a privileged user for t
138138

139139
sub isPrivilegedUser {
140140
my $self = shift;
141-
return 0;
141+
return $< == 0;
142142
}
143143

144144
#-------------------------------------------------------------------

0 commit comments

Comments
 (0)
Please sign in to comment.