Skip to content

Commit f21bdfd

Browse files
committed
fix cache check
1 parent 91abf7a commit f21bdfd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/CIPPCore/Public/Authentication/Test-CIPPAccessUserRole.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ function Test-CIPPAccessUserRole {
2121
)
2222
$Roles = @()
2323
$Table = Get-CippTable -TableName cacheAccessUserRoles
24-
$Filter = "PartitionKey eq 'AccessRole' and RowKey eq '$($User.userDetails)' and Timestamp ge datetime'$((Get-Date).AddMinutes(-15).ToString('yyyy-MM-ddTHH:mm:ss'))'"
24+
$Filter = "PartitionKey eq 'AccessUser' and RowKey eq '$($User.userDetails)' and Timestamp ge datetime'$((Get-Date).AddMinutes(-15).ToUniversalTime().ToString('yyyy-MM-ddTHH:mm:ss.fffZ'))'"
2525
$UserRole = Get-CIPPAzDataTableEntity @Table -Filter $Filter
2626
if ($UserRole) {
2727
Write-Information "Found cached user role for $($User.userDetails)"

0 commit comments

Comments
 (0)