diff options
Diffstat (limited to 'models/settings.js')
-rw-r--r-- | models/settings.js | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/models/settings.js b/models/settings.js index 8eb02c5b..fb823205 100644 --- a/models/settings.js +++ b/models/settings.js @@ -33,14 +33,6 @@ Settings.attachSchema( type: String, optional: true, }, - customHTMLafterBodyStart: { - type: String, - optional: true, - }, - customHTMLbeforeBodyEnd: { - type: String, - optional: true, - }, displayAuthenticationMethod: { type: Boolean, optional: true, @@ -206,6 +198,10 @@ if (Meteor.isServer) { return process.env.CAS_ENABLED === 'true'; } + function isApiEnabled() { + return process.env.WITH_API === 'true'; + } + Meteor.methods({ sendInvitation(emails, boards) { check(emails, [String]); @@ -322,6 +318,10 @@ if (Meteor.isServer) { return isCasEnabled(); }, + _isApiEnabled() { + return isApiEnabled(); + }, + // Gets all connection methods to use it in the Template getAuthenticationsEnabled() { return { @@ -334,6 +334,10 @@ if (Meteor.isServer) { getDefaultAuthenticationMethod() { return process.env.DEFAULT_AUTHENTICATION_METHOD; }, + + isPasswordLoginDisabled() { + return process.env.PASSWORD_LOGIN_ENABLED === 'false'; + }, }); } |