- fix QSelect

- permessi none/friends/all
This commit is contained in:
paoloar77
2022-01-28 18:15:56 +01:00
parent fd79893ddc
commit c391ca85c3
2 changed files with 90 additions and 6 deletions

View File

@@ -333,7 +333,7 @@ router.post('/profile', authenticate, (req, res) => {
//++Todo: controlla che tipo di dati ha il permesso di leggere
return User.getUserProfileByUsername(idapp, username).then((ris) => {
return User.getUserProfileByUsername(idapp, username, req.user.username, false, req.user.perm).then((ris) => {
res.send(ris);
}).catch((e) => {
tools.mylog('ERRORE IN Profile: ' + e.message);