- Gruppi (3) - lista degli utenti del gruppo

This commit is contained in:
paoloar77
2022-02-08 23:14:08 +01:00
parent 16664f7be7
commit 8ed9bd941f
9 changed files with 129 additions and 36 deletions

View File

@@ -200,7 +200,7 @@ MyGroupSchema.statics.getInfoGroupByGroupname = async function(idapp, groupname)
};
MyGroupSchema.statics.getGroupsByUsername = async function(idapp, username) {
MyGroupSchema.statics.getGroupsByUsername = async function(idapp, username, req) {
try {
const {User} = require('../models/user');
@@ -251,6 +251,7 @@ MyGroupSchema.statics.getGroupsByUsername = async function(idapp, username) {
listgroups,
//listRequestUsersGroup,
listSentRequestGroups,
mygroups: req.user.profile.mygroups,
};
} catch (e) {