Skip to content

Commit edb3535

Browse files
committed
fix permission on contact templates
1 parent b2a4599 commit edb3535

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Email-Exchange/Administration/Contacts/Invoke-ListContactTemplates.ps1

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
Function Invoke-ListContactTemplates {
1+
function Invoke-ListContactTemplates {
22
<#
33
.FUNCTIONALITY
44
Entrypoint,AnyTenant
55
.ROLE
6-
Exchange.Read
6+
Exchange.Contact.Read
77
#>
88
[CmdletBinding()]
99
param($Request, $TriggerMetadata)
@@ -39,9 +39,9 @@ Function Invoke-ListContactTemplates {
3939
if (-not $Templates) {
4040
Write-LogMessage -headers $Headers -API $APIName -message "Template with ID $RequestedID not found" -sev 'Warn'
4141
return ([HttpResponseContext]@{
42-
StatusCode = [HttpStatusCode]::NotFound
43-
Body = @{ Error = "Template with ID $RequestedID not found" }
44-
})
42+
StatusCode = [HttpStatusCode]::NotFound
43+
Body = @{ Error = "Template with ID $RequestedID not found" }
44+
})
4545
return
4646
}
4747
} else {

0 commit comments

Comments
 (0)