|
|
@@ -62,6 +62,8 @@ const _ = require('underscore')
|
|
|
module.exports = { initialize }
|
|
|
|
|
|
function initialize(webRouter, privateApiRouter, publicApiRouter) {
|
|
|
+ webRouter.use(unsupportedBrowserMiddleware)
|
|
|
+
|
|
|
if (!Settings.allowPublicAccess) {
|
|
|
webRouter.all('*', AuthenticationController.requireGlobalLogin)
|
|
|
}
|
|
|
@@ -277,7 +279,6 @@ function initialize(webRouter, privateApiRouter, publicApiRouter) {
|
|
|
maxRequests: 30,
|
|
|
timeInterval: 60,
|
|
|
}),
|
|
|
- unsupportedBrowserMiddleware,
|
|
|
ProjectController.projectListPage
|
|
|
)
|
|
|
webRouter.post(
|
|
|
@@ -299,7 +300,6 @@ function initialize(webRouter, privateApiRouter, publicApiRouter) {
|
|
|
maxRequests: 15,
|
|
|
timeInterval: 60,
|
|
|
}),
|
|
|
- unsupportedBrowserMiddleware,
|
|
|
AuthenticationController.validateUserSession(),
|
|
|
AuthorizationMiddleware.ensureUserCanReadProject,
|
|
|
ProjectController.loadEditor
|