mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-23 08:48:01 +00:00
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
parent
e8a5b46ac5
commit
66f31db884
@ -15,6 +15,7 @@
|
|||||||
|
|
||||||
import { Analytics } from '@hcengineering/analytics'
|
import { Analytics } from '@hcengineering/analytics'
|
||||||
import core, {
|
import core, {
|
||||||
|
AccountRole,
|
||||||
cutObjectArray,
|
cutObjectArray,
|
||||||
generateId,
|
generateId,
|
||||||
isArchivingMode,
|
isArchivingMode,
|
||||||
@ -1242,9 +1243,11 @@ export class TSessionManager implements SessionManager {
|
|||||||
|
|
||||||
// We do not need to wait for set-status, just return session to client
|
// We do not need to wait for set-status, just return session to client
|
||||||
const _workspace = service.workspace
|
const _workspace = service.workspace
|
||||||
|
if (helloResponse.account.role !== AccountRole.DocGuest) {
|
||||||
void ctx
|
void ctx
|
||||||
.with('set-status', {}, (ctx) => this.trySetStatus(ctx, pipeline, service, true, _workspace.workspaceUuid))
|
.with('set-status', {}, (ctx) => this.trySetStatus(ctx, pipeline, service, true, _workspace.workspaceUuid))
|
||||||
.catch(() => {})
|
.catch(() => {})
|
||||||
|
}
|
||||||
} catch (err: any) {
|
} catch (err: any) {
|
||||||
ctx.error('error', { err })
|
ctx.error('error', { err })
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user