mirror of
https://github.com/ONLYOFFICE/document-server-integration.git
synced 2026-04-07 14:06:11 +08:00
fix(java-spring): correct roles for named users. Fix Bug 79808
This commit is contained in:
@ -68,7 +68,7 @@ public class ExampleData {
|
|||||||
"Can view chat",
|
"Can view chat",
|
||||||
"Has an avatar",
|
"Has an avatar",
|
||||||
"Can submit forms",
|
"Can submit forms",
|
||||||
"Has no roles",
|
"Has role 'Anyone'",
|
||||||
"Can start filling"
|
"Can start filling"
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -85,7 +85,7 @@ public class ExampleData {
|
|||||||
"Can view chat",
|
"Can view chat",
|
||||||
"Has an avatar",
|
"Has an avatar",
|
||||||
"Can't submit forms",
|
"Can't submit forms",
|
||||||
"Has role 'Anyone'",
|
"Has role 'role'",
|
||||||
"Can start filling"
|
"Can start filling"
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -105,7 +105,7 @@ public class ExampleData {
|
|||||||
"Can't close history",
|
"Can't close history",
|
||||||
"Can't restore the file version",
|
"Can't restore the file version",
|
||||||
"Can't submit forms",
|
"Can't submit forms",
|
||||||
"Has role 'role'",
|
"Has no roles",
|
||||||
"Can start filling"
|
"Can start filling"
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -114,19 +114,19 @@ public class ExampleData {
|
|||||||
"", List.of(FilterState.NULL.toString()), List.of(FilterState.NULL.toString()),
|
"", List.of(FilterState.NULL.toString()), List.of(FilterState.NULL.toString()),
|
||||||
List.of(FilterState.NULL.toString()), List.of(FilterState.NULL.toString()),
|
List.of(FilterState.NULL.toString()), List.of(FilterState.NULL.toString()),
|
||||||
List.of(FilterState.NULL.toString()), false, true, true, true,
|
List.of(FilterState.NULL.toString()), false, true, true, true,
|
||||||
new Goback(null, false), new Close(null, false), null, true);
|
new Goback(null, false), new Close(null, false), List.of("Anyone"), true);
|
||||||
|
|
||||||
// create user 2 with the specified parameters
|
// create user 2 with the specified parameters
|
||||||
userService.createUser("Mark Pottato", "pottato@example.com", descriptionUserSecond,
|
userService.createUser("Mark Pottato", "pottato@example.com", descriptionUserSecond,
|
||||||
"group-2", List.of("", "group-2"), List.of(FilterState.NULL.toString()),
|
"group-2", List.of("", "group-2"), List.of(FilterState.NULL.toString()),
|
||||||
List.of("group-2", ""), List.of("group-2"), List.of("group-2", ""), true, true,
|
List.of("group-2", ""), List.of("group-2"), List.of("group-2", ""), true, true,
|
||||||
true, true, new Goback("Go to Documents", null), new Close(null, true), List.of("Anyone"), false);
|
true, true, new Goback("Go to Documents", null), new Close(null, true), List.of("role"), false);
|
||||||
|
|
||||||
// create user 3 with the specified parameters
|
// create user 3 with the specified parameters
|
||||||
userService.createUser("Hamish Mitchell", null, descriptionUserThird,
|
userService.createUser("Hamish Mitchell", null, descriptionUserThird,
|
||||||
"group-3", List.of("group-2"), List.of("group-2", "group-3"), List.of("group-2"),
|
"group-3", List.of("group-2"), List.of("group-2", "group-3"), List.of("group-2"),
|
||||||
new ArrayList<>(), List.of("group-2"), null, true, true, false,
|
new ArrayList<>(), List.of("group-2"), null, true, true, false,
|
||||||
null, new Close(null, true), List.of("role"), false);
|
null, new Close(null, true), null, false);
|
||||||
|
|
||||||
// create user 0 with the specified parameters
|
// create user 0 with the specified parameters
|
||||||
userService.createUser("Anonymous", null, descriptionUserZero, "",
|
userService.createUser("Anonymous", null, descriptionUserZero, "",
|
||||||
|
|||||||
Reference in New Issue
Block a user