mirror of
https://github.com/ONLYOFFICE/document-server-integration.git
synced 2026-02-10 18:05:10 +08:00
nodejs: user role
This commit is contained in:
@ -1124,6 +1124,7 @@ app.get('/editor', (req, res) => { // define a handler for editing document
|
||||
const { reviewGroups } = user;
|
||||
const { commentGroups } = user;
|
||||
const { userInfoGroups } = user;
|
||||
const userRoles = user.roles;
|
||||
|
||||
const usersInfo = [];
|
||||
const usersForProtect = [];
|
||||
@ -1211,6 +1212,7 @@ app.get('/editor', (req, res) => { // define a handler for editing document
|
||||
userImage: user.avatar ? `${req.DocManager.getServerUrl()}/images/${user.id}.png` : null,
|
||||
name,
|
||||
userGroup,
|
||||
userRoles,
|
||||
reviewGroups: JSON.stringify(reviewGroups),
|
||||
commentGroups: JSON.stringify(commentGroups),
|
||||
userInfoGroups: JSON.stringify(userInfoGroups),
|
||||
|
||||
Reference in New Issue
Block a user