Skip to content

Commit

Permalink
Merge pull request #74 from kayasax/Approval
Browse files Browse the repository at this point in the history
V1.7.3
  • Loading branch information
kayasax authored Dec 12, 2024
2 parents e120d62 + 6dd2056 commit 040c4f9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion EasyPIM/EasyPIM.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
RootModule = 'EasyPIM.psm1'

# Version number of this module.
ModuleVersion = '1.7.2'
ModuleVersion = '1.7.3'

# Supported PSEditions
# CompatiblePSEditions = @()
Expand Down
4 changes: 3 additions & 1 deletion EasyPIM/internal/functions/Set-Approval.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#>
function Set-Approval ($ApprovalRequired, $Approvers, [switch]$entraRole) {
try {
Write-Verbose "Set-Approval"
Write-Verbose "Set-Approval started with ApprovalRequired=$ApprovalRequired and Approvers=$Approvers and entraRole=$entraRole"
if ($null -eq $Approvers) { $Approvers = $script:config.Approvers }
if ($ApprovalRequired -eq $false) { $req = "false" }else { $req = "true" }
<#working sample
Expand Down Expand Up @@ -62,6 +62,7 @@ function Set-Approval ($ApprovalRequired, $Approvers, [switch]$entraRole) {
"isEscalationEnabled":false,
"primaryApprovers":[
'
if ($PSBoundParameters.Keys.Contains('Approvers') -and ($null -ne $Approvers)) {
$cpt = 0
$Approvers | ForEach-Object {
#write-host $_
Expand All @@ -83,6 +84,7 @@ function Set-Approval ($ApprovalRequired, $Approvers, [switch]$entraRole) {
$cpt++
}
$rule=$rule -replace ",$" #remove last comma
}

<#{"id":"5dba24e0-00ef-4c21-9702-7c093a0775eb","userType":"Group","description":"0Ext_Partners","isBackup":false},
{"id":"00b34bb3-8a6b-45ce-a7bb-c7f7fb400507","userType":"User","description":"Bob MARLEY","isBackup":false},
Expand Down

0 comments on commit 040c4f9

Please sign in to comment.