|
@@ -286,10 +286,10 @@ exports.applicationNotInstalled = function() {
|
|
|
return function(req, res, next) {
|
|
return function(req, res, next) {
|
|
|
var config = req.config;
|
|
var config = req.config;
|
|
|
|
|
|
|
|
- // if (Object.keys(config.crowi).length !== 1) {
|
|
|
|
|
- // req.flash('errorMessage', 'Application already installed.');
|
|
|
|
|
- // return res.redirect('admin'); // admin以外はadminRequiredで'/'にリダイレクトされる
|
|
|
|
|
- // }
|
|
|
|
|
|
|
+ if (Object.keys(config.crowi).length !== 1) {
|
|
|
|
|
+ req.flash('errorMessage', 'Application already installed.');
|
|
|
|
|
+ return res.redirect('admin'); // admin以外はadminRequiredで'/'にリダイレクトされる
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
return next();
|
|
return next();
|
|
|
};
|
|
};
|