Skip to content

Commit

Permalink
ExcludeSystemUser correct logic in Get-DbaDbUser (dataplat#9415)
Browse files Browse the repository at this point in the history
  • Loading branch information
pollusb authored Jul 16, 2024
1 parent 35baf52 commit 61eed4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/Get-DbaDbUser.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ function Get-DbaDbUser {
Write-Message -Message "No users exist in the $db database on $instance" -Target $db -Level Verbose
continue
}
if (Test-Bound -ParameterName ExcludeSystemUser) {
if ($ExcludeSystemUser) {
$users = $users | Where-Object { $_.IsSystemObject -eq $false }
}
if (Test-Bound -ParameterName User) {
Expand Down

0 comments on commit 61eed4d

Please sign in to comment.