Il creatore del Gruppo deve già appartenere al Gruppo stesso
Non permettere di aggiungere un Gruppo con lo stesso nome o codice quando cancelli un Gruppo, cancella anche tutti i riferimenti sugli utenti di quel gruppo. Errore caricamento Immagini !
This commit is contained in:
@@ -25,6 +25,7 @@ const Subscription = mongoose.model('subscribers');
|
||||
|
||||
const server_constants = require('./server_constants');
|
||||
|
||||
|
||||
// SETTINGS WebPush Configuration
|
||||
const webpush = require('web-push');
|
||||
|
||||
@@ -1136,7 +1137,7 @@ module.exports = {
|
||||
},
|
||||
|
||||
getAskToVerifyReg: function(idapp) {
|
||||
return tools.getConfSiteOptionEnabledByIdApp(idapp, shared_consts.ConfSite.Need_Aportador_On_DataReg_To_Verify_Reg);
|
||||
return this.getConfSiteOptionEnabledByIdApp(idapp, shared_consts.ConfSite.Need_Aportador_On_DataReg_To_Verify_Reg);
|
||||
},
|
||||
|
||||
isManagAndAdminDifferent(idapp) {
|
||||
|
||||
@@ -75,7 +75,7 @@ module.exports = {
|
||||
let mytable = '';
|
||||
if (tablename === 'users')
|
||||
mytable = User;
|
||||
else if (tablename === 'mygroups')
|
||||
else if (tablename === shared_consts.TAB_MYGROUPS)
|
||||
mytable = MyGroup;
|
||||
else if (tablename === 'tessitura')
|
||||
mytable = Tessitura;
|
||||
|
||||
@@ -6,6 +6,8 @@ module.exports = Object.freeze({
|
||||
RIS_CODE_EMAIL_ALREADY_VERIFIED: -5,
|
||||
RIS_CODE_EMAIL_VERIFIED: 1,
|
||||
|
||||
RIS_CODE_REC_ALREADY_EXIST_CODE: -101,
|
||||
RIS_CODE_REC_ALREADY_EXIST_NAME: -100,
|
||||
RIS_CODE_USER_APORTADOR_NOT_VALID: -75,
|
||||
RIS_CODE_USER_EXTRALIST_NOTFOUND: -70,
|
||||
RIS_CODE_USERNAME_ALREADY_EXIST: -60,
|
||||
|
||||
Reference in New Issue
Block a user