diff options
author | michag86 <micha_g@arcor.de> | 2015-08-19 20:05:52 +0200 |
---|---|---|
committer | michag86 <micha_g@arcor.de> | 2015-08-19 20:05:52 +0200 |
commit | 3a6d273265e527afcdf715a83f72833fd391556e (patch) | |
tree | 362cfb5c5b27b624165841dbe237bba4f83bffb5 /settings | |
parent | 9ad4510f5b8ddc5f932f78e55adeb6763906d12b (diff) | |
download | nextcloud-server-3a6d273265e527afcdf715a83f72833fd391556e.tar.gz nextcloud-server-3a6d273265e527afcdf715a83f72833fd391556e.zip |
do not remove empty group in gui by js
Diffstat (limited to 'settings')
-rw-r--r-- | settings/js/users/users.js | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/settings/js/users/users.js b/settings/js/users/users.js index 4e686a6db8f..5b12366ad40 100644 --- a/settings/js/users/users.js +++ b/settings/js/users/users.js @@ -470,17 +470,6 @@ var UserList = { UserList.availableGroups.push(groupName); } - // in case this was the last user in that group the group has to be removed - var groupElement = GroupList.getGroupLI(groupName); - var userCount = GroupList.getUserCount(groupElement); - if (response.data.action === 'remove' && userCount === 1) { - _.without(UserList.availableGroups, groupName); - GroupList.remove(groupName); - $('.groupsselect option').filterAttr('value', groupName).remove(); - $('.subadminsselect option').filterAttr('value', groupName).remove(); - } - - } if (response.data.message) { OC.Notification.show(response.data.message); |