Skip to content

Commit

Permalink
fixes caldefaults
Browse files Browse the repository at this point in the history
  • Loading branch information
KelvinTegelaar committed Jan 17, 2025
1 parent 508ecd9 commit 57d5b5d
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ function Invoke-CIPPStandardcalDefault {
##$Rerun -Type Standard -Tenant $Tenant -Settings $Settings 'calDefault'

# Input validation
$Settings.permissionlevel = $Settings.permissionlevel.value ? $Settings.permissionlevel.value : $Settings.permissionlevel
if ([string]::IsNullOrWhiteSpace($Settings.permissionlevel) -or $Settings.permissionlevel -eq 'Select a value') {
Write-LogMessage -API 'Standards' -tenant $tenant -message 'calDefault: Invalid permissionlevel parameter set' -sev Error
Return
Expand Down

0 comments on commit 57d5b5d

Please sign in to comment.