removing Utils.getCurrentSetting() and use ReactiveCache directly

This commit is contained in:
Martin Filser 2023-07-20 21:08:39 +02:00
parent a8c071f04c
commit 875442f1ce
8 changed files with 17 additions and 17 deletions

View file

@ -1956,7 +1956,7 @@ if (Meteor.isServer) {
}
//invite user to corresponding boards
const disableRegistration = Utils.getCurrentSetting().disableRegistration;
const disableRegistration = ReactiveCache.getCurrentSetting().disableRegistration;
// If ldap, bypass the inviation code if the self registration isn't allowed.
// TODO : pay attention if ldap field in the user model change to another content ex : ldap field to connection_type
if (doc.authenticationMethod !== 'ldap' && disableRegistration) {