diff options
-rw-r--r-- | settings/js/users.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/settings/js/users.js b/settings/js/users.js index 14d0a966d4f..b92feb52334 100644 --- a/settings/js/users.js +++ b/settings/js/users.js @@ -219,8 +219,8 @@ var UserList = { }, function (response) { if(response.status === 'success') { - if(UserList.availableGroups.indexOf(response.data.gropname) === -1 && response.data.action === 'add') { - UserList.availableGroups.push(response.data.gropname); + if(UserList.availableGroups.indexOf(response.data.groupname) === -1 && response.data.action === 'add') { + UserList.availableGroups.push(response.data.groupname); } } else { OC.Notification.show(response.data.message); |