Merge pull request #15258 from owncloud/users-addtofilteredgroup
Don't append user in a filtered list if groups don't match
This commit is contained in:
commit
7e73b25533
1 changed files with 4 additions and 0 deletions
|
@ -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');
|
||||
|
|
Loading…
Reference in a new issue