Skip to content
Snippets Groups Projects
Commit ea933565 authored by Vincent Petry's avatar Vincent Petry
Browse files

Don't append user in a filtered list if groups don't match

parent d082e372
No related branches found
No related tags found
No related merge requests found
......@@ -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');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment