Enable building on unsupported systems
This commit is contained in:
@@ -7,7 +7,7 @@ func (p *Process) IsUser() bool {
|
||||
|
||||
// IsAdmin returns whether the process is run by an admin user.
|
||||
func (p *Process) IsAdmin() bool {
|
||||
return p.UserID >= 0
|
||||
return p.UserID >= 0 && p.UserID < 1000
|
||||
}
|
||||
|
||||
// IsSystem returns whether the process is run by the operating system.
|
||||
|
||||
Reference in New Issue
Block a user