externalldap: set group members as a single transaction
This commit is contained in:
@@ -64,7 +64,7 @@ async function update(req, res, next) {
|
||||
async function setMembers(req, res, next) {
|
||||
assert.strictEqual(typeof req.params.groupId, 'string');
|
||||
|
||||
if (req.resource.source === 'ldap') return next(new HttpError(409, 'external group members cannot be set'));
|
||||
if (req.resource.source === 'ldap') return next(new HttpError(409, 'members of an external group cannot be set'));
|
||||
|
||||
if (!req.body.userIds) return next(new HttpError(404, 'missing or invalid userIds fields'));
|
||||
if (!Array.isArray(req.body.userIds)) return next(new HttpError(404, 'userIds must be an array'));
|
||||
|
||||
Reference in New Issue
Block a user