feat: add filter:group.getOwnersAndMembers

v1.18.x
Barış Soner Uşaklı 4 years ago
parent 7f57d39cd5
commit f1e82b6441

@ -179,8 +179,14 @@ Groups.getOwnersAndMembers = async function (groupName, uid, start, stop) {
memberStop = memberStart + countToReturn - 1;
}
}
return countToReturn > 0 ? returnUsers.slice(0, countToReturn) : returnUsers;
returnUsers = countToReturn > 0 ? returnUsers.slice(0, countToReturn) : returnUsers;
const result = await plugins.fireHook('filter:group.getOwnersAndMembers', {
users: returnUsers,
uid: uid,
start: start,
stop: stop,
});
return result.users;
};
Groups.getByGroupslug = async function (slug, options) {

Loading…
Cancel
Save