|
|
@@ -248,6 +248,11 @@ module.exports = function(crowi) {
|
|
|
|
|
|
configSchema.statics.isEnabledPassport = function(config)
|
|
|
{
|
|
|
+ // always true if crowi-plus installed cleanly
|
|
|
+ if (Object.keys(config.crowi).length == 0) {
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+
|
|
|
const key = 'security:isEnabledPassport';
|
|
|
return getValueForCrowiNS(config, key);
|
|
|
};
|