Skip to content

Commit

Permalink
Merge pull request #5571 from NikCharlebois/AADApplication-Permission
Browse files Browse the repository at this point in the history
AADApplication - Fix Permission Evaluation
  • Loading branch information
NikCharlebois authored Dec 17, 2024
2 parents a1ac29e + 8012e7d commit d4a1d4e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

* AADApplication
* Added support for Oauth2PermissionScopes.
* Fixes comparison issue for permissions.
* TeamsMeetingPolicy
* FIXES [#5550](https://github.com/microsoft/Microsoft365DSC/issues/5550)
* MISC
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1426,8 +1426,8 @@ function Test-TargetResource

$CurrentValues = Get-TargetResource @PSBoundParameters

if ($CurrentValues.Permissions.Length -gt 0 -and `
$null -ne $CurrentValues.Permissions.Name)
if ($CurrentValues.Permissions.Length -gt 0 -and $null -ne $CurrentValues.Permissions.Name -and `
$null -ne $Permissions)
{
$differenceObject = $Permissions.Name
if ($null -eq $differenceObject)
Expand Down

0 comments on commit d4a1d4e

Please sign in to comment.