summaryrefslogtreecommitdiffstats
path: root/settings
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2015-03-27 10:02:33 +0100
committerMorris Jobke <hey@morrisjobke.de>2015-03-27 10:02:33 +0100
commit7e73b255335a73128ece5f495a48533e49a79226 (patch)
treec6ba2b68db51f047180f2afc5ec2395f87d05f00 /settings
parenta62f38a18b2b5c38e9706d3349ab773650f7bb34 (diff)
parentea93356598894d91968e39615789f934036cf38c (diff)
downloadnextcloud-server-7e73b255335a73128ece5f495a48533e49a79226.tar.gz
nextcloud-server-7e73b255335a73128ece5f495a48533e49a79226.zip
Merge pull request #15258 from owncloud/users-addtofilteredgroup
Don't append user in a filtered list if groups don't match
Diffstat (limited to 'settings')
-rw-r--r--settings/js/users/users.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/settings/js/users/users.js b/settings/js/users/users.js
index 7034972dd15..154003bb840 100644
--- a/settings/js/users/users.js
+++ b/settings/js/users/users.js
@@ -48,6 +48,10 @@ var UserList = {
* @returns table row created for this user
*/
add: function (user, sort) {
+ if (this.currentGid && _.indexOf(user.groups, this.currentGid) < 0) {
+ return;
+ }
+
var $tr = $userListBody.find('tr:first-child').clone();
// this removes just the `display:none` of the template row
$tr.removeAttr('style');