mirror of
https://github.com/hcengineering/platform.git
synced 2025-05-12 10:25:51 +00:00
UBERF-9714: Support subsecutive meeting joins (#8421)
* uberf-9714: support subsecutive meeting joins Signed-off-by: Alexey Zinoviev <alexey.zinoviev@xored.com> * uberf-9714: fix unit test Signed-off-by: Alexey Zinoviev <alexey.zinoviev@xored.com>
This commit is contained in:
parent
addd09cc52
commit
0341b69395
@ -244,6 +244,7 @@ describe('AccountPostgresDbCollection', () => {
|
||||
a.uuid,
|
||||
a.timezone,
|
||||
a.locale,
|
||||
a.automatic,
|
||||
p.hash,
|
||||
p.salt
|
||||
FROM global_account.account as a
|
||||
|
@ -316,6 +316,7 @@ export class AccountPostgresDbCollection
|
||||
a.uuid,
|
||||
a.timezone,
|
||||
a.locale,
|
||||
a.automatic,
|
||||
p.hash,
|
||||
p.salt
|
||||
FROM ${this.getTableName()} as a
|
||||
|
@ -766,6 +766,7 @@ export async function checkAutoJoin (
|
||||
if (emailSocialId != null) {
|
||||
const targetAccount = await getAccount(db, emailSocialId.personUuid)
|
||||
if (targetAccount != null) {
|
||||
if (targetAccount.automatic == null || !targetAccount.automatic) {
|
||||
if (token == null) {
|
||||
// Login required
|
||||
const person = await db.person.findOne({ uuid: targetAccount.uuid })
|
||||
@ -789,6 +790,7 @@ export async function checkAutoJoin (
|
||||
email: normalizedEmail
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
const targetRole = await getWorkspaceRole(db, targetAccount.uuid, workspace.uuid)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user