Skip to content

Commit 2a3c576

Browse files
.vlaue fix
1 parent cd42c9d commit 2a3c576

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Identity/Administration/Users

Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Identity/Administration/Users/Invoke-EditUser.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@ Function Invoke-EditUser {
8888
try {
8989

9090
if ($licenses -or $UserObj.removeLicenses) {
91-
if ($UserObj.sherwebLicense) {
92-
$License = Set-SherwebSubscription -TenantFilter $UserObj.tenantFilter -SKU $UserObj.sherwebLicense -Add 1
91+
if ($UserObj.sherwebLicense.value) {
92+
$License = Set-SherwebSubscription -TenantFilter $UserObj.tenantFilter -SKU $UserObj.sherwebLicense.value -Add 1
9393
$null = $results.Add('Added Sherweb License, scheduling assignment')
9494
$taskObject = [PSCustomObject]@{
9595
TenantFilter = $UserObj.tenantFilter

0 commit comments

Comments
 (0)