From abba56a6f33e70cde79a9e105df798cc9be1df53 Mon Sep 17 00:00:00 2001 From: Lex Lim Date: Thu, 11 Nov 2021 20:43:26 +0800 Subject: [PATCH] fix: display "Continue with (User)" button of another organization (#327) Signed-off-by: Lex Lim --- web/src/auth/LoginPage.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/web/src/auth/LoginPage.js b/web/src/auth/LoginPage.js index 7d6f1a23..588aea0b 100644 --- a/web/src/auth/LoginPage.js +++ b/web/src/auth/LoginPage.js @@ -386,6 +386,10 @@ class LoginPage extends React.Component { if (this.props.account === undefined || this.props.account === null) { return null; } + let application = this.getApplicationObj() + if (this.props.account.owner !== application.organization) { + return null; + } return (