]> source.dussan.org Git - nextcloud-server.git/commitdiff
Don't append user in a filtered list if groups don't match
authorVincent Petry <pvince81@owncloud.com>
Thu, 26 Mar 2015 23:09:35 +0000 (00:09 +0100)
committerVincent Petry <pvince81@owncloud.com>
Thu, 26 Mar 2015 23:09:35 +0000 (00:09 +0100)
settings/js/users/users.js

index 7034972dd15526ed3cd3201e0c21297dbf3ddc74..154003bb84045f4af05a95d03dc71c81ff33aeac 100644 (file)
@@ -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');