Skip to content

Commit

Permalink
!deploy v2.36.4
Browse files Browse the repository at this point in the history
## 2.36.4 - 2020-03-20

* [Issue #270](#270)
    * Corrected inaccurate warning that no licenses were found for a user when using the `CheckAll` switch on `Get-GSUserLicense`.
  • Loading branch information
scrthq committed Mar 20, 2020
1 parent b23841d commit 11c3bb8
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
* [PSGSuite - ChangeLog](#psgsuite---changelog)
* [2.36.4 - 2020-03-20](#2364---2020-03-20)
* [2.36.3 - 2020-03-20](#2363---2020-03-20)
* [2.36.2 - 2020-03-02](#2362---2020-03-02)
* [2.36.1 - 2020-03-02](#2361---2020-03-02)
Expand Down Expand Up @@ -110,6 +111,11 @@

# PSGSuite - ChangeLog

## 2.36.4 - 2020-03-20

* [Issue #270](https://github.com/scrthq/PSGSuite/issues/270)
* Corrected inaccurate warning that no licenses were found for a user when using the `CheckAll` switch on `Get-GSUserLicense`.

## 2.36.3 - 2020-03-20

* [Issue #270](https://github.com/scrthq/PSGSuite/issues/270)
Expand Down
2 changes: 1 addition & 1 deletion PSGSuite/PSGSuite.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
RootModule = 'PSGSuite.psm1'

# Version number of this module.
ModuleVersion = '2.36.3'
ModuleVersion = '2.36.4'

# ID used to uniquely identify this module
GUID = '9d751152-e83e-40bb-a6db-4c329092aaec'
Expand Down
5 changes: 4 additions & 1 deletion PSGSuite/Public/Licensing/Get-GSUserLicense.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ function Get-GSUserLicense {
$request.Execute()
}
else {
$matchedLicense = $false
foreach ($License in (Get-LicenseSkuFromDisplayName).Keys | Sort-Object) {
$response = $null
Write-Verbose "Getting License SKU '$License' for User '$U'"
Expand All @@ -121,13 +122,15 @@ function Get-GSUserLicense {
}
catch {}
if (-not $CheckAll -and $response) {
$matchedLicense = $true
break
}
elseif ($response) {
$matchedLicense = $true
$response
}
}
if (!$response) {
if (-not $matchedLicense) {
Write-Warning "No license found for $U!"
}
}
Expand Down
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,11 @@ All other functions are either intact or have an alias included to support backw

[Full CHANGELOG here](https://github.com/scrthq/PSGSuite/blob/master/CHANGELOG.md)

#### 2.36.4 - 2020-03-20

* [Issue #270](https://github.com/scrthq/PSGSuite/issues/270)
* Corrected inaccurate warning that no licenses were found for a user when using the `CheckAll` switch on `Get-GSUserLicense`.

#### 2.36.3 - 2020-03-20

* [Issue #270](https://github.com/scrthq/PSGSuite/issues/270)
Expand Down

0 comments on commit 11c3bb8

Please sign in to comment.