mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 15:30:13 +01:00
removing Utils.getCurrentSetting() and use ReactiveCache directly
This commit is contained in:
parent
a8c071f04c
commit
875442f1ce
8 changed files with 17 additions and 17 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue