From be8b9cf0922886b747285fb284ea42710673ef75 Mon Sep 17 00:00:00 2001 From: Johan Stenehall Date: Sun, 2 Mar 2014 12:46:03 +0100 Subject: [PATCH] Fixing typo in allowedSections for allowed pages under settings --- core/server/controllers/admin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/server/controllers/admin.js b/core/server/controllers/admin.js index e0fd494446..0ed5c14a98 100644 --- a/core/server/controllers/admin.js +++ b/core/server/controllers/admin.js @@ -89,7 +89,7 @@ adminControllers = { // Method: GET 'settings': function (req, res, next) { // TODO: Centralise list/enumeration of settings panes, so we don't run into trouble in future. - var allowedSections = ['', 'general', 'user', 'app'], + var allowedSections = ['', 'general', 'user', 'apps'], section = req.url.replace(/(^\/ghost\/settings[\/]*|\/$)/ig, ''); if (allowedSections.indexOf(section) < 0) {