Skip to content

Commit

Permalink
Handling system wide permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
BobJWalker committed Dec 17, 2021
1 parent a7e7a25 commit bfd5160
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,11 @@ $teamScopedUserRoles = Invoke-OctopusApi -OctopusUrl $octopusUrl -endPoint "team
$spaceIdList = @()
foreach ($userRole in $teamScopedUserRoles.Items)
{
if ($null -eq $userRole.SpaceId)
{
continue
}

if ($spaceIdList -notcontains $userRole.SpaceId)
{
Write-Verbose "Adding the space $($userRole.SpaceId) to the space list"
Expand Down

0 comments on commit bfd5160

Please sign in to comment.