Skip to content

Commit be2c84c

Browse files
authored
Merge pull request #977 from KelvinTegelaar/dev
[pull] dev from KelvinTegelaar:dev
2 parents 337a508 + e3d57cf commit be2c84c

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

Modules/CIPPCore/Public/New-CIPPBackup.ps1

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,14 @@ function New-CIPPBackup {
7070
}
7171
$Entities | Select-Object * -ExcludeProperty DomainAnalyser, table, Timestamp, ETag, Results | Select-Object *, @{l = 'table'; e = { $CSVTable } }
7272
}
73+
# Back up excluded tenant rows (user-configured exclusion state only)
74+
$TenantsTable = Get-CippTable -tablename 'Tenants'
75+
$ExcludedTenants = Get-AzDataTableEntity @TenantsTable -Filter "PartitionKey eq 'Tenants' and Excluded eq true"
76+
if ($ExcludedTenants) {
77+
$CSVfile = @($CSVfile) + @(
78+
$ExcludedTenants | Select-Object PartitionKey, RowKey, customerId, defaultDomainName, displayName, Excluded, ExcludeDate, ExcludeUser | Select-Object *, @{l = 'table'; e = { 'Tenants' } }
79+
)
80+
}
7381
$RowKey = 'CIPPBackup' + '_' + (Get-Date).ToString('yyyy-MM-dd-HHmm')
7482
$BackupData = [string]($CSVfile | ConvertTo-Json -Compress -Depth 100)
7583
$TableName = 'CIPPBackup'

Modules/CIPPStandards/Public/Standards/Invoke-CIPPStandardDeployCheckChromeExtension.ps1

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ function Invoke-CIPPStandardDeployCheckChromeExtension {
3030
{"type":"autoComplete","multiple":true,"creatable":true,"required":false,"freeSolo":true,"name":"standards.DeployCheckChromeExtension.urlAllowlist","label":"URL Allowlist","placeholder":"e.g. https://example.com/*","helperText":"Enter URLs to allowlist in the extension. Press enter to add each URL. Wildcards are allowed. This should be used for sites that are being blocked by the extension but are known to be safe."}
3131
{"type":"switch","name":"standards.DeployCheckChromeExtension.domainSquattingEnabled","label":"Enable domain squatting detection","defaultValue":true}
3232
{"type":"textField","name":"standards.DeployCheckChromeExtension.companyName","label":"Company Name","placeholder":"YOUR-COMPANY","required":false}
33-
{"type":"textField","name":"standards.DeployCheckChromeExtension.companyURL","label":"Company URL","placeholder":"https://yourcompany.com","required":false}
3433
{"type":"textField","name":"standards.DeployCheckChromeExtension.productName","label":"Product Name","placeholder":"YOUR-PRODUCT-NAME","required":false}
3534
{"type":"textField","name":"standards.DeployCheckChromeExtension.supportEmail","label":"Support Email","placeholder":"support@yourcompany.com","required":false}
3635
{"type":"textField","name":"standards.DeployCheckChromeExtension.supportUrl","label":"Support URL","placeholder":"https://support.yourcompany.com","required":false}
@@ -108,7 +107,7 @@ function Invoke-CIPPStandardDeployCheckChromeExtension {
108107
$SupportUrl = $Settings.supportUrl ?? ''
109108
$PrivacyPolicyUrl = $Settings.privacyPolicyUrl ?? ''
110109
$AboutUrl = $Settings.aboutUrl ?? ''
111-
$PrimaryColor = if ($Settings.primaryColor) { $Settings.primaryColor } else { '#F77F00' }
110+
$PrimaryColor = if ($Settings.primaryColor) { '#{0}' -f ($Settings.primaryColor -replace '^#+', '') } else { '#F77F00' }
112111
$LogoUrl = $Settings.logoUrl ?? ''
113112

114113
##########################################################################

0 commit comments

Comments
 (0)