Add cloud check on github add user to default org

This commit is contained in:
carlosmonastyrski
2025-05-02 12:58:36 -03:00
parent 365b4b975e
commit e12f4ad253
3 changed files with 3 additions and 3 deletions
@@ -724,7 +724,7 @@ export const authLoginServiceFactory = ({
isGhost: false
});
if (authMethod === AuthMethod.GITHUB && serverCfg.defaultAuthOrgId) {
if (authMethod === AuthMethod.GITHUB && serverCfg.defaultAuthOrgId && !appCfg.isCloud) {
let orgId = "";
const defaultOrg = await orgDAL.findOrgById(serverCfg.defaultAuthOrgId);
if (!defaultOrg) {