From 09f49fb7eca3400f39e9962579c7bd550a821ff4 Mon Sep 17 00:00:00 2001 From: Felix Moessbauer Date: Thu, 28 Nov 2024 17:14:51 +0100 Subject: [PATCH] fix(Intune): correctly iterate when ssoInTuneAuthUser is provided (#1502) * fix(Intune): correctly iterate when ssoInTuneAuthUser is provided We need to iterate the values, not the indexes. closes: #1466 * add release notes for 1.12.2 release --- app/intune/index.js | 2 +- com.github.IsmaelMartinez.teams_for_linux.appdata.xml | 7 +++++++ package.json | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/app/intune/index.js b/app/intune/index.js index 76557c17..aa00b5ac 100644 --- a/app/intune/index.js +++ b/app/intune/index.js @@ -14,7 +14,7 @@ function processInTuneAccounts(resp, ssoInTuneAuthUser) { inTuneAccount = response.accounts[0]; console.debug('Using first available InTune account (' + inTuneAccount.username + ')'); } else { - for (const account in response.accounts) { + for (const account of response.accounts) { if (account.username == ssoInTuneAuthUser) { inTuneAccount = account; console.debug('Found matching InTune account (' + inTuneAccount.username + ')'); diff --git a/com.github.IsmaelMartinez.teams_for_linux.appdata.xml b/com.github.IsmaelMartinez.teams_for_linux.appdata.xml index 80dbff37..2d0c3ade 100644 --- a/com.github.IsmaelMartinez.teams_for_linux.appdata.xml +++ b/com.github.IsmaelMartinez.teams_for_linux.appdata.xml @@ -14,6 +14,13 @@ https://github.com/IsmaelMartinez/teams-for-linux/issues com.github.IsmaelMartinez.teams_for_linux.desktop + + +
    +
  • Fix selection of InTune user when explicitly pinning it via `ssoInTuneAuthUser`
  • +
+
+
    diff --git a/package.json b/package.json index bc40a7e4..f5f2b011 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "teams-for-linux", - "version": "1.12.1", + "version": "1.12.2", "main": "app/index.js", "description": "Unofficial client for Microsoft Teams for Linux", "homepage": "https://github.com/IsmaelMartinez/teams-for-linux",