|
|
|
@ -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) {
|
|
|
|
|