Skip to content

Commit 4bafb2c

Browse files
committed
remove .None permissions from allowed result
1 parent bcb4157 commit 4bafb2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/CIPPCore/Public/Authentication/Get-CippAllowedPermissions.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,5 +187,5 @@ function Get-CippAllowedPermissions {
187187
}
188188

189189
# Return sorted unique permissions
190-
return ($AllowedPermissions | Sort-Object -Unique)
190+
return ($AllowedPermissions | Where-Object { $_ -notmatch 'None$' } | Sort-Object -Unique)
191191
}

0 commit comments

Comments
 (0)