|
1 | 1 | import { Prisma } from '@prisma/client'; |
2 | | -import { |
3 | | - NONE_EXAM_DOCUMENT_ID, |
4 | | - RW_EXERCISE_IMPSUM_DOCUMENT_ROOT_ID, |
5 | | - RO_VISIBILITY_WRAPPER_DOCUMENT_ROOT_ID, |
6 | | - RW_EXERCISE_LOREM_DOCUMENT_ROOT_ID |
7 | | -} from './document-roots'; |
8 | | -import { TEST_USER_ID } from './users'; |
9 | | -import { Access } from '@prisma/client'; |
10 | | -import { CLASS_GROUP_ID, PROJECT_GROUP_ID } from './student-groups'; |
11 | 2 |
|
12 | | -const rootUserPermissions: Prisma.RootUserPermissionCreateManyInput[] = [ |
13 | | - { |
14 | | - documentRootId: RW_EXERCISE_LOREM_DOCUMENT_ROOT_ID, |
15 | | - userId: TEST_USER_ID, |
16 | | - access: Access.RO_DocumentRoot |
17 | | - }, |
18 | | - { |
19 | | - documentRootId: NONE_EXAM_DOCUMENT_ID, |
20 | | - userId: TEST_USER_ID, |
21 | | - access: Access.None_DocumentRoot |
22 | | - } |
23 | | -]; |
| 3 | +const rootUserPermissions: Prisma.RootUserPermissionCreateManyInput[] = []; |
24 | 4 |
|
25 | | -const rootGroupPermissions: Prisma.RootGroupPermissionCreateManyInput[] = [ |
26 | | - { |
27 | | - documentRootId: RW_EXERCISE_IMPSUM_DOCUMENT_ROOT_ID, |
28 | | - studentGroupId: CLASS_GROUP_ID, |
29 | | - access: Access.RO_DocumentRoot |
30 | | - }, |
31 | | - { |
32 | | - documentRootId: NONE_EXAM_DOCUMENT_ID, |
33 | | - studentGroupId: CLASS_GROUP_ID, |
34 | | - access: Access.RW_DocumentRoot |
35 | | - }, |
36 | | - { |
37 | | - documentRootId: RO_VISIBILITY_WRAPPER_DOCUMENT_ROOT_ID, |
38 | | - studentGroupId: PROJECT_GROUP_ID, |
39 | | - access: Access.None_DocumentRoot |
40 | | - } |
41 | | -]; |
| 5 | +const rootGroupPermissions: Prisma.RootGroupPermissionCreateManyInput[] = []; |
42 | 6 |
|
43 | 7 | export { rootUserPermissions, rootGroupPermissions }; |
0 commit comments