summaryrefslogtreecommitdiffstats
path: root/settings/js/users
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2016-09-12 16:16:20 +0200
committerMorris Jobke <hey@morrisjobke.de>2017-04-29 00:54:30 -0300
commit7be031ae6de807862d7d9e3632c79f8b80cf73c9 (patch)
tree9f03ddfbfc7a974a3bc80512131848b4c7f7b70b /settings/js/users
parentd91b4044fc040d4ddc541812c1afb6497873031a (diff)
downloadnextcloud-server-7be031ae6de807862d7d9e3632c79f8b80cf73c9.tar.gz
nextcloud-server-7be031ae6de807862d7d9e3632c79f8b80cf73c9.zip
change group id to _disabledUsers
Diffstat (limited to 'settings/js/users')
-rw-r--r--settings/js/users/groups.js4
-rw-r--r--settings/js/users/users.js8
2 files changed, 6 insertions, 6 deletions
diff --git a/settings/js/users/groups.js b/settings/js/users/groups.js
index b54f26b4ccb..16621441a64 100644
--- a/settings/js/users/groups.js
+++ b/settings/js/users/groups.js
@@ -211,9 +211,9 @@ GroupList = {
showDisabledUsers: function () {
UserList.empty();
- UserList.update('disabledUsers');
+ UserList.update('_disabledUsers');
$userGroupList.find('li').removeClass('active');
- GroupList.getGroupLI('disabledUsers').addClass('active');
+ GroupList.getGroupLI('_disabledUsers').addClass('active');
},
showGroup: function (gid) {
diff --git a/settings/js/users/users.js b/settings/js/users/users.js
index 552d28ad505..117c61b7dcb 100644
--- a/settings/js/users/users.js
+++ b/settings/js/users/users.js
@@ -52,7 +52,7 @@ var UserList = {
* }
*/
add: function (user) {
- if (this.currentGid && this.currentGid !== '_everyone' && this.currentGid !== 'disabledUsers' && _.indexOf(user.groups, this.currentGid) < 0) {
+ if (this.currentGid && this.currentGid !== '_everyone' && this.currentGid !== '_disabledUsers' && _.indexOf(user.groups, this.currentGid) < 0) {
return false;
}
@@ -936,14 +936,14 @@ $(document).ready(function () {
{username: uid, enabled: setEnabled},
function (result) {
if (result && result.status==='success'){
- var count = GroupList.getUserCount(GroupList.getGroupLI('disabledUsers'));
+ var count = GroupList.getUserCount(GroupList.getGroupLI('_disabledUsers'));
$tr.remove();
if(result.data.enabled == 1) {
$tr.data('userEnabled', true);
- GroupList.setUserCount(GroupList.getGroupLI('disabledUsers'), count-1);
+ GroupList.setUserCount(GroupList.getGroupLI('_disabledUsers'), count-1);
} else {
$tr.data('userEnabled', false);
- GroupList.setUserCount(GroupList.getGroupLI('disabledUsers'), count+1);
+ GroupList.setUserCount(GroupList.getGroupLI('_disabledUsers'), count+1);
}
} else {
OC.dialogs.alert(result.data.message, t('settings', 'Unable to change status of {user}', {user: uid}));