mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-13 05:07:43 +02:00
UBERF-5603 (#4754)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
//
|
||||
|
||||
import type { Account, Arr, Class, Data, Doc, Domain, Mixin, Obj, Ref, TxCreateDoc, TxCUD } from '@hcengineering/core'
|
||||
import core, { AttachedDoc, ClassifierKind, DOMAIN_MODEL, DOMAIN_TX, TxFactory } from '@hcengineering/core'
|
||||
import core, { AccountRole, AttachedDoc, ClassifierKind, DOMAIN_MODEL, DOMAIN_TX, TxFactory } from '@hcengineering/core'
|
||||
import type { IntlString, Plugin } from '@hcengineering/platform'
|
||||
import { plugin } from '@hcengineering/platform'
|
||||
|
||||
@@ -194,8 +194,8 @@ export function genMinModel (): TxCUD<Doc>[] {
|
||||
const u1 = 'User1' as Ref<Account>
|
||||
const u2 = 'User2' as Ref<Account>
|
||||
txes.push(
|
||||
createDoc(core.class.Account, { email: 'user1@site.com', role: 0 }, u1),
|
||||
createDoc(core.class.Account, { email: 'user2@site.com', role: 0 }, u2),
|
||||
createDoc(core.class.Account, { email: 'user1@site.com', role: AccountRole.User }, u1),
|
||||
createDoc(core.class.Account, { email: 'user2@site.com', role: AccountRole.User }, u2),
|
||||
createDoc(core.class.Space, {
|
||||
name: 'Sp1',
|
||||
description: '',
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
//
|
||||
|
||||
import core, {
|
||||
AccountRole,
|
||||
createClient,
|
||||
Doc,
|
||||
generateId,
|
||||
@@ -105,7 +106,7 @@ describe('query', () => {
|
||||
|
||||
await factory.createDoc(core.class.Account, core.space.Model, {
|
||||
email: 'user1@site.com',
|
||||
role: 0
|
||||
role: AccountRole.User
|
||||
})
|
||||
await factory.createDoc<Channel>(core.class.Space, core.space.Model, {
|
||||
private: true,
|
||||
|
||||
Reference in New Issue
Block a user