mirror of
https://github.com/netbirdio/netbird.git
synced 2026-10-29 15:59:10 +01:00
Apply the SSH root-login setting to uid 0, not only to the account named root (#8390)
This commit is contained in:
@@ -483,7 +483,7 @@ func TestServer_IsPrivilegedUser(t *testing.T) {
|
||||
|
||||
for _, tt := range tests {
|
||||
t.Run(tt.description, func(t *testing.T) {
|
||||
result := isPrivilegedOrUnknown(tt.username)
|
||||
result := isPrivilegedOrUnknown(&user.User{Username: tt.username, Uid: "1000"})
|
||||
assert.Equal(t, tt.expected, result, tt.description)
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user