From 3a81e5b75f5d51a14087a78d68ca8b510e11c891 Mon Sep 17 00:00:00 2001 From: yflory Date: Thu, 8 Apr 2021 12:05:38 +0200 Subject: [PATCH] Fix incorrect error message when changing team members rights --- www/common/outer/team.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/www/common/outer/team.js b/www/common/outer/team.js index ce164b01b..373e9c762 100644 --- a/www/common/outer/team.js +++ b/www/common/outer/team.js @@ -1364,15 +1364,15 @@ define([ // Viewer to editor if (user.role === "VIEWER" && data.data.role !== "VIEWER") { - changeEditRights(ctx, teamId, user, true, function (err) { - return void cb({error: err}); + changeEditRights(ctx, teamId, user, true, function (obj) { + return void cb(obj); }); } // Editor to viewer if (user.role !== "VIEWER" && data.data.role === "VIEWER") { - changeEditRights(ctx, teamId, user, false, function (err) { - return void cb({error: err}); + changeEditRights(ctx, teamId, user, false, function (obj) { + return void cb(obj); }); }