Skip to content

Commit 923b6db

Browse files
authored
Merge pull request #120 from KelvinTegelaar/dev
[pull] dev from KelvinTegelaar:dev
2 parents 9a69a53 + f5e78da commit 923b6db

File tree

2 files changed

+13
-11
lines changed

2 files changed

+13
-11
lines changed

Modules/CIPPCore/Public/Clear-CippDurables.ps1

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,16 @@ function Clear-CippDurables {
1919
}
2020
}
2121

22+
Remove-AzDataTable @InstancesTable
23+
Remove-AzDataTable @HistoryTable
24+
$BlobContainer = '{0}-largemessages' -f $FunctionName
25+
if (Get-AzStorageContainer -Name $BlobContainer -Context $StorageContext -ErrorAction SilentlyContinue) {
26+
Write-Information "- Removing blob container: $BlobContainer"
27+
if ($PSCmdlet.ShouldProcess($BlobContainer, 'Remove Blob Container')) {
28+
Remove-AzStorageContainer -Name $BlobContainer -Context $StorageContext -Confirm:$false -Force
29+
}
30+
}
31+
2232
$QueueTable = Get-CippTable -TableName 'CippQueue'
2333
$CippQueue = Invoke-ListCippQueue
2434
$QueueEntities = foreach ($Queue in $CippQueue) {
@@ -45,15 +55,7 @@ function Clear-CippDurables {
4555
}
4656
}
4757

48-
Remove-AzDataTable @InstancesTable
49-
Remove-AzDataTable @HistoryTable
50-
$BlobContainer = '{0}-largemessages' -f $FunctionName
51-
if (Get-AzStorageContainer -Name $BlobContainer -Context $StorageContext -ErrorAction SilentlyContinue) {
52-
Write-Information "- Removing blob container: $BlobContainer"
53-
if ($PSCmdlet.ShouldProcess($BlobContainer, 'Remove Blob Container')) {
54-
Remove-AzStorageContainer -Name $BlobContainer -Context $StorageContext -Confirm:$false -Force
55-
}
56-
}
5758
$null = Get-CippTable -TableName ('{0}History' -f $FunctionName)
5859
Write-Information 'Durable Orchestrators and Queues have been cleared'
60+
return $true
5961
}

Modules/CIPPCore/Public/Standards/Invoke-CIPPStandardcalDefault.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ function Invoke-CIPPStandardcalDefault {
1414
Exchange Standards
1515
TAG
1616
DISABLEDFEATURES
17-
17+
1818
ADDEDCOMPONENT
1919
{"type":"autoComplete","multiple":false,"label":"Select Sharing Level","name":"standards.calDefault.permissionLevel","options":[{"label":"Owner - The user can create, read, edit, and delete all items in the folder, and create subfolders. The user is both folder owner and folder contact.","value":"Owner"},{"label":"Publishing Editor - The user can create, read, edit, and delete all items in the folder, and create subfolders.","value":"PublishingEditor"},{"label":"Editor - The user can create items in the folder. The contents of the folder do not appear.","value":"Editor"},{"label":"Publishing Author. The user can read, create all items/subfolders. Can modify and delete only items they create.","value":"PublishingAuthor"},{"label":"Author - The user can create and read items, and modify and delete items that they create.","value":"Author"},{"label":"Non Editing Author - The user has full read access and create items. Can can delete only own items.","value":"NonEditingAuthor"},{"label":"Reviewer - The user can read all items in the folder.","value":"Reviewer"},{"label":"Contributor - The user can create items and folders.","value":"Contributor"},{"label":"Availability Only - Indicates that the user can view only free/busy time within the calendar.","value":"AvailabilityOnly"},{"label":"Limited Details - The user can view free/busy time within the calendar and the subject and location of appointments.","value":"LimitedDetails"},{"label":"None - The user has no permissions on the folder.","value":"none"}]}
2020
IMPACT
@@ -34,7 +34,7 @@ function Invoke-CIPPStandardcalDefault {
3434
##$Rerun -Type Standard -Tenant $Tenant -Settings $Settings 'calDefault'
3535

3636
# Get permissionlevel value using null-coalescing operator
37-
$permissionLevel = $Settings.permissionlevel.value ?? $Settings.permissionlevel
37+
$permissionLevel = $Settings.permissionLevel.value ?? $Settings.permissionLevel
3838

3939
# Input validation
4040
if ([string]::IsNullOrWhiteSpace($permissionLevel) -or $permissionLevel -eq 'Select a value') {

0 commit comments

Comments
 (0)