mirror of
https://github.com/wekan/wekan.git
synced 2026-02-26 18:04:06 +01:00
Patch admin search feature
This commit is contained in:
parent
a97360dcfb
commit
663ba26d4d
2 changed files with 8 additions and 8 deletions
|
|
@ -1,4 +1,5 @@
|
|||
Meteor.publish('people', function(limit) {
|
||||
Meteor.publish('people', function(query, limit) {
|
||||
check(query, Match.OneOf(Object, null));
|
||||
check(limit, Number);
|
||||
|
||||
if (!Match.test(this.userId, String)) {
|
||||
|
|
@ -8,7 +9,7 @@ Meteor.publish('people', function(limit) {
|
|||
const user = Users.findOne(this.userId);
|
||||
if (user && user.isAdmin) {
|
||||
return Users.find(
|
||||
{},
|
||||
query,
|
||||
{
|
||||
limit,
|
||||
sort: { createdAt: -1 },
|
||||
|
|
@ -21,9 +22,8 @@ Meteor.publish('people', function(limit) {
|
|||
loginDisabled: 1,
|
||||
authenticationMethod: 1,
|
||||
},
|
||||
},
|
||||
);
|
||||
} else {
|
||||
return [];
|
||||
});
|
||||
}
|
||||
|
||||
return [];
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue