|
|
@@ -449,7 +449,7 @@ module.exports = function(crowi, app) {
|
|
|
const pageId = req.body.page_id || null;
|
|
|
const revisionId = req.body.revision_id || null;
|
|
|
const grant = req.body.grant || null;
|
|
|
- const grantUserGroupIds = req.body.grantUserGroupIds || null;
|
|
|
+ const userRelatedGrantUserGroupIds = req.body.userRelatedGrantUserGroupIds || null;
|
|
|
const overwriteScopesOfDescendants = req.body.overwriteScopesOfDescendants || null;
|
|
|
const isSlackEnabled = !!req.body.isSlackEnabled; // cast to boolean
|
|
|
const slackChannels = req.body.slackChannels || null;
|
|
|
@@ -481,7 +481,7 @@ module.exports = function(crowi, app) {
|
|
|
const options = { overwriteScopesOfDescendants };
|
|
|
if (grant != null) {
|
|
|
options.grant = grant;
|
|
|
- options.grantUserGroupIds = grantUserGroupIds;
|
|
|
+ options.userRelatedGrantUserGroupIds = userRelatedGrantUserGroupIds;
|
|
|
}
|
|
|
|
|
|
const previousRevision = await Revision.findById(revisionId);
|