Remove export button if WITH_API is not enabled

#2938
https://github.com/wekan/wekan/issues/2938#issuecomment-589782402
This commit is contained in:
Nico 2020-04-09 01:55:01 +02:00
parent 7c25542976
commit f09219cbfd
4 changed files with 34 additions and 29 deletions

View file

@ -198,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]);
@ -314,6 +318,10 @@ if (Meteor.isServer) {
return isCasEnabled();
},
_isApiEnabled() {
return isApiEnabled();
},
// Gets all connection methods to use it in the Template
getAuthenticationsEnabled() {
return {