summaryrefslogtreecommitdiffstats
path: root/settings/js
diff options
context:
space:
mode:
authorkondou <kondou@ts.unde.re>2013-04-05 18:52:14 +0200
committerkondou <kondou@ts.unde.re>2013-04-05 18:52:14 +0200
commit8d63b7d9bf4f3e00fa09a8dbe22471335e72a9ff (patch)
treea556bf3e3ba422172c8691dc354de711a913c1a7 /settings/js
parent5525fade11d626c4743b5d6f60a1adbcbc22f9fe (diff)
downloadnextcloud-server-8d63b7d9bf4f3e00fa09a8dbe22471335e72a9ff.tar.gz
nextcloud-server-8d63b7d9bf4f3e00fa09a8dbe22471335e72a9ff.zip
Fix #2693
When removing a group response.data.action becomes 'remove', thus the if shows an empty notification.
Diffstat (limited to 'settings/js')
-rw-r--r--settings/js/users.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/settings/js/users.js b/settings/js/users.js
index d79b21765ff..14d0a966d4f 100644
--- a/settings/js/users.js
+++ b/settings/js/users.js
@@ -218,8 +218,8 @@ var UserList = {
group: group
},
function (response) {
- if(response.status === 'success' && response.data.action === 'add') {
- if(UserList.availableGroups.indexOf(response.data.gropname) === -1) {
+ if(response.status === 'success') {
+ if(UserList.availableGroups.indexOf(response.data.gropname) === -1 && response.data.action === 'add') {
UserList.availableGroups.push(response.data.gropname);
}
} else {