- Export Email

- Etichetta Facilitatori
This commit is contained in:
Paolo Arena
2022-07-11 23:20:28 +02:00
parent ba99b72e69
commit 4486a09255
4 changed files with 9 additions and 9 deletions

View File

@@ -505,8 +505,8 @@ UserSchema.statics.isDepartment = function(perm) {
UserSchema.statics.isTutor = function(perm) {
try {
return ((perm & shared_consts.Permissions.Tutor) ===
shared_consts.Permissions.Tutor);
return ((perm & shared_consts.Permissions.Facilitatore) ===
shared_consts.Permissions.Facilitatore);
} catch (e) {
return false;
}

View File

@@ -479,7 +479,7 @@ router.post('/getexp', authenticate, (req, res) => {
'profile.lastname_telegram': 1,
}).then(ris => {
return res.send({data: ris});
return res.send(ris);
}).catch((e) => {
console.error('getexp: ' + e.message);

View File

@@ -112,7 +112,7 @@ const textlang = {
'RITESSITURA': 'RITESSITURA',
'NAVE COMPLETATA': 'NAVE COMPLETATA',
'Doni Effettuati': 'Doni Effettuati',
'Tutor che affianchèra il Mediatore': 'Tutor che affianchèra il Mediatore',
'Facilitatore che affianchèra il Mediatore': 'Facilitatore che affianchèra il Mediatore',
'APERTURA_CHIUSURA_GIFT_CHAT': '%s: Apertura GIFT CHAT\n%s Chiusura GIFT CHAT\nNota Bene: Hai tempo 3 giorni dall\'apertura per entrare in Chat ed effettuare il tuo Dono, dopodichè effettueremo la sostituzione.',
'Giorno di Apertura GIFT CHAT': 'Giorno di Apertura GIFT CHAT',
'Giorno in cui Inviare il DONO': 'Hai 3 giorni di tempo per inviare il tuo dono.\nGiorno di Chiusura',
@@ -186,7 +186,7 @@ const textlang = {
'RITESSITURA': 'RETEJIDO',
'NAVE COMPLETATA': 'NAVE COMPLETADA',
'Doni Effettuati': 'Regalos Realizados',
'Tutor che affianchèra il Mediatore': 'Tutor de apoyo al Donante',
'Facilitatore che affianchèra il Mediatore': 'Facilitatore de apoyo al Donante',
'APERTURA_CHIUSURA_GIFT_CHAT': '%s: Apertura del CHAT DE REGALOS\n%s Cierre del CHAT DE REGALOS\nNota: Tienes 3 días desde la apertura para entrar en el Chat y hacer tu Regalo, después de lo cual haremos el reemplazo',
'SPOSTATO': 'Has sido trasladado a una nueva nave !',
'Note': 'Notas',
@@ -250,7 +250,7 @@ const textlang = {
'RITESSITURA': 'RE-ENTER',
'NAVE COMPLETATA': 'SHIP COMPLETED',
'Doni Effettuati': 'Gifts Made',
'Tutor che affianchèra il Mediatore': 'Tutor supporting the Mediator',
'Facilitatore che affianchèra il Mediatore': 'Facilitatore supporting the Mediator',
'APERTURA_CHIUSURA_GIFT_CHAT': '%s: Opening GIFT CHAT\n%s Closing GIFT CHAT\nNote: You have 3 days from the opening to enter the Chat and make your Gift, after which we will make the replacement.',
'SPOSTATO': 'You\'ve been moved to a New Ship !',
'Note': 'Note',
@@ -319,7 +319,7 @@ const textlang = {
'RITESSITURA': 'RETESSITURA',
'NAVE COMPLETATA': 'NAVIRE COMPLÉTÉ',
'Doni Effettuati': 'Don effectués',
'Tutor che affianchèra il Mediatore': 'Le tuteur qui soutient le Mediateur',
'Facilitatore che affianchèra il Mediatore': 'Le tuteur qui soutient le Mediateur',
'APERTURA_CHIUSURA_GIFT_CHAT': '%s : Chat d\'ouverture\n%s Clôture du GIFT CHAT\nNote: Vous avez 3 jours à partir de l\'ouverture pour entrer dans le Chat et faire votre Cadeau, après quoi nous ferons le remplacement',
'SPOSTATO': 'Vous avez été transféré sur un nouveau navire !',
'Note': 'Notes',
@@ -386,7 +386,7 @@ const textlang = {
'RITESSITURA': 'ENTRE EM',
'NAVE COMPLETATA': 'NAVIO COMPLETADO',
'Doni Effettuati': 'Regalo Feitos',
'Tutor che affianchèra il Mediatore': 'Tutor que apoia o Mediator',
'Facilitatore che affianchèra il Mediatore': 'Facilitatore que apoia o Mediator',
'APERTURA_CHIUSURA_GIFT_CHAT': '%s: Abertura do GIFT CHAT\n%s Fechamento GIFT CHAT\nNota: Você tem 3 dias desde a abertura para entrar no Chat e fazer o seu Presente, depois do qual faremos o substituição.',
'SPOSTATO': 'Você foi transferido para um novo navio !',
'Note': 'Notas',

View File

@@ -191,7 +191,7 @@ module.exports = {
Admin: 1,
Manager: 2,
Teacher: 4,
Tutor: 8,
Facilitatore: 8,
Editor: 16,
Zoomeri: 32,
Department: 64,