Explorar o código

- Fix Reference error.

Thanks to Akuket !
Lauri Ojansivu %!s(int64=6) %!d(string=hai) anos
pai
achega
2a5a428bc0
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      models/users.js

+ 1 - 1
models/users.js

@@ -521,7 +521,7 @@ if (Meteor.isServer) {
 
     const disableRegistration = Settings.findOne().disableRegistration;
     // If this is the first Authentication by the ldap and self registration disabled
-    if (disableRegistration && options.ldap) {
+    if (disableRegistration && options && options.ldap) {
       user.authenticationMethod = 'ldap';
       return user;
     }