Skip to content

Commit 8480bf2

Browse files
committed
prevent null permissions
1 parent 7cf0f36 commit 8480bf2

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
@@ -32,7 +32,7 @@ function Get-CippAllowedPermissions {
3232
$AllPermissionCacheTable = Get-CIPPTable -tablename 'cachehttppermissions'
3333
$AllPermissionsRow = Get-CIPPAzDataTableEntity @AllPermissionCacheTable -Filter "PartitionKey eq 'HttpFunctions' and RowKey eq 'HttpFunctions' and Version eq '$($Version)'"
3434

35-
if (-not $AllPermissionsRow) {
35+
if (-not $AllPermissionsRow.Permissions) {
3636
$AllPermissions = Get-CIPPHttpFunctions -ByRole | Select-Object -ExpandProperty Permission
3737
$Entity = @{
3838
PartitionKey = 'HttpFunctions'

0 commit comments

Comments
 (0)