|
|
@@ -53,6 +53,7 @@ module.exports = function(crowi) {
|
|
|
'security:registrationWhiteList' : [],
|
|
|
|
|
|
'security:isEnabledPassport' : false,
|
|
|
+ 'security:externalAsLocal': false,
|
|
|
'security:passport-ldap:isEnabled' : false,
|
|
|
'security:passport-ldap:serverUrl' : undefined,
|
|
|
'security:passport-ldap:isUserBind' : undefined,
|
|
|
@@ -277,6 +278,12 @@ module.exports = function(crowi) {
|
|
|
return getValueForCrowiNS(config, key);
|
|
|
};
|
|
|
|
|
|
+ configSchema.statics.shouldTreatExternalAccountAsLocal = function(config)
|
|
|
+ {
|
|
|
+ const key = 'security:externalAsLocal';
|
|
|
+ return getValueForCrowiNS(config, key);
|
|
|
+ };
|
|
|
+
|
|
|
configSchema.statics.isUploadable = function(config)
|
|
|
{
|
|
|
var method = crowi.env.FILE_UPLOAD || 'aws';
|