Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
die_coolen_jungs
our_own_cloud_project
Commits
7e73b255
Commit
7e73b255
authored
Mar 27, 2015
by
Morris Jobke
Browse files
Merge pull request #15258 from owncloud/users-addtofilteredgroup
Don't append user in a filtered list if groups don't match
parents
a62f38a1
ea933565
Changes
1
Hide whitespace changes
Inline
Side-by-side
settings/js/users/users.js
View file @
7e73b255
...
...
@@ -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
'
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment