Skip to content

Commit

Permalink
old license was not populated when updating a user by id (#89)
Browse files Browse the repository at this point in the history
* old license set when updating a user from id

* old license set when updating user from id
  • Loading branch information
GPugnet authored and DarqueWarrior committed Sep 11, 2018
1 parent b11904f commit a7ad3c7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/users.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -160,14 +160,14 @@ function Update-VSTeamUser
}

$id = $user.id
$licenseOld = $user.accessLevel.accountLicenseType

}
else
{
$user = Get-VSTeamUser -Id $id
$user = Get-VSTeamUser -Id $id
}

$licenseOld = $user.accessLevel.accountLicenseType

$obj = @{
from = ""
op = "replace"
Expand Down

0 comments on commit a7ad3c7

Please sign in to comment.